For this program you will modify the average calculation


Programming Exercise: Average Calculation Modification...

For this program, you will modify the average calculation assignment from Module 9. The program should start the same, asking the user to enter 6 test scores and storing them in the array. The program should sort the array in ascending order and display the current average, dropping the lowest score. The final step is to give the user the opportunity to modify one of the grades to see how it affects the average. Ask the user which score they would like to modify and what value to change it to. Modify the score and then display the new average using the new score.

Example Output:

Enter grade #1

100[Enter]

Enter grade #2

90[Enter]

Enter grade #3

95[Enter]

Enter grade #4

98[Enter]

Enter grade #5

88[Enter]

Enter grade #6

92[Enter]

The low grade of 88 was dropped resulting in an average of 95

Which score would you like to change?

85 [Enter]

I could not find that score, please enter a valid score:

88 [Enter]

What will this score be changed to?

92 [Enter]

The low grade of 90 was dropped resulting in an average of 95.4

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: For this program you will modify the average calculation
Reference No:- TGS01673599

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)