You are encouraged to do this assignment in pairs. In industry, pair programming has
been shown to be an effective way to produce quality code.
1. Assemble and run the a12300.csp file (you’ll find it in the CUSP zip file) from Blackboard.
Consider how this program works and then make the following changes to the program.
· Get 10 valid inputs from the user (set the constant NUM).
· Consider the inputs to be grades with valid grades from 0 to 100.
· Determine the lowest, highest, and average grade.
· Allow the user to run the program multiple times (enter 999 to exit).
After all of the values have been entered, the program should print out the grades (all on
one line) plus, along with appropriate prompts, the integer average of all of the grades,
the highest grade, and the lowest grade.
For example if the grades entered are the tens from 10 to 100 the program should print
out,
10 20 30 40 50 60 70 80 90 100
Average grade = 55
Highest grade = 100
Lowest grade = 10


0 comments