Fall 1997 Semester CS78 Section A Lab 06 Assignment Assigned 97/10/07 Due 97/10/13 Jacqueline, your neighbor, is working on a new game. It is set on a planar field where the player (user) can go left, right, forward, or backward. She wants to make it as friendly as possible so that they can use both standard key sets*. The user should be able to enter either uppercase or lowercase letters. All Jacqueline wants to do right now is get this input and have it work correctly. If the user enters anything else, the program should print an error. If the user enters something valid, the program should print a message saying what direction the user entered. * If you are unfamiliar with keyboard mappings, the two standard directional mappings are: N K W E H L S J Those on the left are, of course, North, West, East, and South. Those on the right are standard Unix cursor keys -- no, they don't make sense but are standard. Since you don't know loops yet, the program will only check one key entry. Also note that the user will be forced to hit <Enter> after typing the keystroke -- annoying but anything else is not portable.
Since there is only one input, you shouldn't have ordering problems this week. *smile* Remember, part of your grade comes from using what was taught this week! Use the stuff I taught this week! Feel free to use previous weeks' material as well, of course. But don't work ahead. What: are you TRYING to drive me nuts? *phbbt* *grin*
You are to still perform the first four steps of the SDP. However, you won't be required to turn them in this time. If you come to me for help, I may ask you to see your SDP. And if people don't do well, I'll have you start turning it in again. But for now, you can just submit the C++ lab portion. This should be turned in as lab 6, C++ lab -- one file.
Please note that your midterm is coming up on the 14th!! Don't forget!!
I believe that about covers it. See you in class! Remember, if you have ANY questions, please email me or come see me in my office hours. Thank you...