Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not use Classes or splits, also please use command line 2. In a gymnastic or diving competition, each contestant's acore is calculated by

Please do not use Classes or splits, also please use command line

image text in transcribed

2. In a gymnastic or diving competition, each contestant's acore is calculated by dropping the lowest and highest scores and then adding the remaining scores. ?rite a JAVA program that first asks user to enter the number of contestants. Then the program should read the score of 8 judges for each contestant CLASS NAME MUST BE Homework8 1 The program should display as shown in sample output Note: to find out the average score, use number of judges as 6 not 8 because we drop maximum and minimum scores a) the name of contestants and score from all 8 judges as shown in 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 score should look like 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.89.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 9.3 9.9 9.1 9.5 9.5 9.6 9.8 Walter 9.2 9.3 9.4 9.3 9.9 9.1 9.6 9.0 Here the first number in your input file is the number of contestants Hint: Use 2-D array Sample output: The number of contestants is 5 Contestant Scores 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 9.3 9.9 9.1 9.5 9.5 9.6 9.8 9.2 9.3 9.4 9.3 9.9 9.1 9.6 9.0 Albert John tenry Walter 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 ?alter is 9.32 The highest total score amongst the contestants is 9.52 The lowest total score amongst the contestants is 9.32

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago