Question: I need some help with a C++ program I have to do. The instructions are as follows: I have to Write a program that calculates

I need some help with a C++ program I have to do. The instructions are as follows:

I have to Write a program that calculates the average of a group of 10 test scores, where the lowest score and the highest score in the group are dropped. It should use the following functions;

- getScore() should ask the user for a test score, validate the input. Validation: Do not accept test scores lower than 0 or higher than 100. This function should return a validated score.

-The main function should call getScore() for each of the 10 scores to be entered. The main should store the 10 scores in an array.

-finsHighest() should take the array as input parameter and find and remove the highest score. It should return the array to the main function. You will have to find a way to remove the highest score and return the remaining 9 scores.

-findLowest() should take the array as input parameter and find and remove the lowest score. It should return the array to main. You will have to find a way to remove the lowest score and return the remaining 8 scores.

- calcAverage() should take the array as input and calculate the average of the 8 remaining scores, return the average score to the main.

-The main function displays the average score.

Thank you in Advance for the help.

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!