Do While Loop Practice Exercise
Video Summary: https://youtu.be/0LaAyvg5AP4
Copy and paste the following example into your IDE:
When this exercise is completed, the program will ask for a mark. The program will not continue, but will keep looping and asking for marks until a mark between 0 and 100, inclusive, is typed. It will then assign a letter grade to the mark.
Instructions:
- Add a do-while loop to complete the program.
The do-while loop will make sure that a valid mark will be obtained before further processing.
Hint: an event-controlled do-while loop is needed
- Compile and run the program several times to test it.
Use these test input values: -10, 30, 59, 70, 75, 96, and 108.