Question: Write a complete Java program including comments to do the following: Outline: At the Olympic games many of the events are judged in the following

Write a complete Java program including comments to do the following:
Outline:
At the Olympic games many of the events are judged in the following manner. An individual
athlete's performance is judged by a number of judges (in our case it will be a variable number
of judges up to 10). Each of the athletes receives a grade from 0.0 to 10.0 from each of the
judges. The performance score of the athletes is obtained by rejecting both the highest and
lowest score and taking the average of the remaining scores. You will repeat the process for
each athlete until the entire set of data has been taken care of.
Here are the details:
Assume the input format is as follows. It will read in the id of the athlete followed by a
number representing the number of judges for this athlete followed by the scores recorded.
236578.87.46.37.15.67.36.4
The above means that Athlete number 2365 had 7 judges followed by 7 scores
The program will compute the average score for each athlete (remember the highest and
lowest score don't count). It should then print the athlete id followed by the average score for
that athlete. In addition it should determine which athlete had the highest average score and
print a message with the athlete's id and average.
Remember: the highest and lowest scores don't count so factor that in along with not
counting the 2 judges whose scores don't count when computing the average.
In addition keep track of the single highest score from all the scores and print a message with
the score and that athletes ID.
Data to be used.
Write a complete Java program including comments

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 Programming Questions!