Please do not use classes or splits, also please use command line.
Write a Java program that first asks the user to enter the number of contestants. Then the program should read the score of 8 judges for each contestant. The class name must be Homework8_1.
The program should display the following:
a) The name of contestants and score from all 8 judges, as shown in the sample output.
b) The total score of each contestant (total score is the average of scores after removing the highest and lowest scores).
c) The highest total score amongst the contestants (which is the average highest score).
d) The lowest total score amongst the contestants (which is the average lowest score).
Your input file for scores should look like this:
Albert 9.2 9.3 9.0 9.9 9.5 9.5 9.6 9.8
John 9.1 9.4 9.6 9.8 9.4 9.3 9.9 9.1
Jay 9.2 9.3 9.0 9.9 9.4 9.3 9.9 9.1
Henry 9.4
Here, the first number in your input file is the number of contestants.
Hint: Use a 2-D array.
Sample output:
The number of contestants is 5
Contestant Scores
Albert John Jay Henry Walter
9.2 9.3 9.0 9.9 9.5 9.5 9.6 9.8
9.1 9.4 9.6 9.8 9.4 9.3 9.9 9.1
9.2 9.3 9.0 9.9 9.4 9.3 9.9 9.1
9.4
Total score of Albert is 9.48
Total score of John is 9.43
Total score of Jay is 9.37
Total score of Henry is 9.52
Total score of Walter is 9.32
The highest total score amongst the contestants is 9.52
The lowest total score amongst the contestants is 9.32