Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do that with java We will implement a scoring technique that is a simplification of the method used for rating divers (as in the
Please do that with java
We will implement a scoring technique that is a simplification of the method used for rating divers (as in the Olympics). We assume that we are judging an event where each performance has a difficulty level associated with it - in our case the difficulty level will be a numeric value between 1 and 5 There will be five judges giving their scores for each performance. Each judge will report a value between 0 and 10. These values need not be integers. The final score is to be obtained by dropping the highest score and the lowest score from those submitted by the judges, averaging the remaining three scores and multiplying that average by the difficulty level. Your java program should ask the user for the difficulty level and the five judges' scores, then computes, and outputs the resulting final score rounded to 2 decimal places. Note: You MUST NOT use four (or five) separate variables for the scores- use a loop 1. 2. You will need a main method, no additional methods are required - but you can write additional methods if that helps you to construct the program. You are NOT required to validate the input-that is, the program does not need to check to make sure that the degree of difficulty is between 1 and 5 or that the judge's scores are between 0 and 10. Your program should display all the good programming practices we have talked about- 3. 4. appropriate comments, prompts, labels, indentation, spacing, and variable names Here is a sample run of the program. What is the degree of difficulty of this performance? 3.6 score for judge #1: 4.2 score for judge #2: 2.75 score for judge #3: 3.8 score for judge #4: 4.5 score for judge #5: 4 The final score is 14.40Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started