Question: Write a program to calculate the sum, max, min, and average of a list of integer numbers entered by the user, and counts how many
Write a program to calculate the sum, max, min, and average of a list of integer numbers entered by the user, and counts how many are above average. The user enters -99 to stop the entering list. The program assumes less than MAXSCORES values where MACXSCORES is a constant number. Here is a sample run: Please enter a number (or -99 to stop): 12 Please enter a number (or -99 to stop): 14 Please enter a number (or -99 to stop): 17 Please enter a number (or -99 to stop): 24 Please enter a number (or -99 to stop): 45 Please enter a number (or -99 to stop): -99 Sum = 112 Count = 5 Min = 12 Max = 45 Average = 22.4 Over Average = 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
