In gymnastics or diving competitioneach contestants score


In gymnastics or diving competition,each contestant's score is calculated by dropping the lowest and higher scores and then adding the remaining scores. Write a complete C++ program that allows the user to enter eight judges' scores and output the total scores received by the contestant( A judge awards points between 1 and 10, with 1 being the lowest and 10 being the highest.)

For example, if the scores are 9.2,9.3,9.0,9.9,9.5,9.5,9.6 and 9.8, the contestant receives a total score of 56.9 points (9.0 and 9.9 are deleted). That means only 6 scores will be used to calculate the total points.

your program:

1.read the contestants' data (i.e the judges' scores) from input file and print them onto an output file

2.compute the total scores by dropping the lowest and highest scores, and adding the remaining 6 scores

3.print out the list of total scores onto an output file

4.sort the scores obtained in (3)

5.print the sorted list to the same output file (in descending order according to the total points)

 

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: In gymnastics or diving competitioneach contestants score
Reference No:- TGS01195680

Expected delivery within 24 Hours