Solve exercise 6 from section 6.9. The loop for part 4 should be a yes/no style loop. ("latter" means the immediately preceding entity; here: gradeAverage.)
For step 2, the gradeAverage must be between 1 and 400 (since 0 would stop as per part 1).
(You do not need to do the optional part.)
Use PROCs well to break your program into re-usable parts. (You should understand the value of modularization by this stage in your programming course-work/career, right? It will also serve you well when we learn to make our own 'link libraries'.)
This assignment is Level 3.5.
Add (Level 1.5) to allow the user to enter the whole word ("yes" or "no") to your part 4 loop. (Hint: What does ReadChar return when it reads a new-line?)
Perhaps a general module to clear the input buffer up to and including a specified character would be useful? Can you default the terminal character to a new-line for your caller? That would be so nice! Thanks...
Okay, okay! So if you have the termination character 'argument' to your PROC default to a new-line, you can add an extra (Level 1). Hint: What is the single character that cannot be typed at the keyboard (not even with the ALT-keypad trick)?