Question: The program will keep prompting user to input a valid grade (0-100) until a -1 is input, e.g, Enter a grade (-1 to quit):
The program will keep prompting user to input a valid grade (0-100) until a -1 is input, e.g, "Enter a grade (-1 to quit): " 2) If an invalid grade is given, the program will print an error message "XXX is not a valid grade. A valid grade is 0-100." where XXX is the given input, and prompt again. 3) After a -1 is input, the program prints the number of grades in A (90-100), B (80-89), C (70- 79) and F (0-69), and exits.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
