Question: Analyze scores: Write a program that reads an unspecified number of scores and determines how many scores are above or equal to the average and

Analyze scores:

Write a program that reads an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Enter a negative number to signify the end of the input. Assume that the maximum number of scores is 100.

Here is a sample run:

Enter a new score or negative number to exit: 99.1

Enter a new score or negative number to exit: 85.6

Enter a new score or negative number to exit: -1

Total scores entered: 2

Average score: 92.35

Number of scores above or equal to the average: 1

Number of scores below the average: 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!