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 Each of the athletes receives a grade from to 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.
The above means that Athlete number had judges followed by 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 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
