- May 31, 2000
- 75
- 0
- 0
I need a .cpp file that will accomplish the following:
The seven judges of a gymnastics competition assign scores between 0.0 and 10.0 to each contestant's routine. The rules state that the high and the low scores are eliminated and the remaining five scores are totalled to find the overall score for the contestant. For example, with the scores of 9.6, 9.5, 9.9, 9.9, 9.7, 9.8, and 9.6, the high score of 9.9 (only one of them) and the low score of 9.5 are eliminated and the remaining scores are totalled to give an overall score of 48.6 for the contestant.
Write a C++ program that prompts the user for the seven scores. Determine the overall score based on the method described above and display the contestant's final score.
To receive full credit for this program, your solution must correctly utilize an array to handle the scores. A solution not utilizing an array in this manner will lose 10 out of 100 points.
The seven judges of a gymnastics competition assign scores between 0.0 and 10.0 to each contestant's routine. The rules state that the high and the low scores are eliminated and the remaining five scores are totalled to find the overall score for the contestant. For example, with the scores of 9.6, 9.5, 9.9, 9.9, 9.7, 9.8, and 9.6, the high score of 9.9 (only one of them) and the low score of 9.5 are eliminated and the remaining scores are totalled to give an overall score of 48.6 for the contestant.
Write a C++ program that prompts the user for the seven scores. Determine the overall score based on the method described above and display the contestant's final score.
To receive full credit for this program, your solution must correctly utilize an array to handle the scores. A solution not utilizing an array in this manner will lose 10 out of 100 points.