-
April 18th, 2010, 03:24 PM
#1
I'm a noob, HELP!
So I'm writing an exercise/check-for-comprehension program. I have to write a program that asks, "What letter grade do you deserve?" Then, the user replies by entering in a letter (A,B, or C; D and F are left out because of the gap between the letters, and this is a novice program, so assume the user types A, B, or C). The program then says,"This is the grade you are going to get:" and displays one letter grade lower than the user entered. In other words, if I enter an A, I get a B, and if I enter a B, I get a C, and finally, if put C, I get a D.
I'm not allowed to use the IF and ELSE techniques. I'm guessing, by the nature of this program, I have to use pointer arithmetic methods.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|