Write a program to read a list of exam scores given as integer percentages in the range 0-100. Display the total number of grades in each letter grade defined as follows:
90-100 is an A, 80-89 is a B, 70-79 is a C, 60-69 is a D, 0-59 is an F. Use a negative score as a sentinel to indicate the end of the input. (The negative value is used just to end the loop, do not use it in the calculations). Then output the highest and lowest score, and the average score.
For example if the input is: 72 98 87 50 70 86 85 78 73 72 72 66 63 85 - 1
the output would be:
Total number of grades = 14
Number of As = 1
Number of Bs = 4
Number of Cs = 6
Number of Ds = 2
Number of Fs = 1
The highest score is 98
The lowest score is 50
The average is 75.5
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program to read a list of exam scores given as integer percentages in the range 0-100. Display the total number of grades in each ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write a program to read a list of exam scores given as integer percentages in the range 0-100. Display the total number of grades in each letter grade defined as follows: 90-100 is an A, 80-89 is a B, 70-79 is a C, 60-69 is a D, 0-59 is an F.