Question: THIS IS FOR JAVA Write a JAVA program that will calculate the winner of a dive between two divers. Each diver will have a list

THIS IS FOR JAVA

Write a JAVA program that will calculate the winner of a dive between two divers. Each diver will have a list of 7 scores, with each score on a scale from 1-10. The dive will have a difficulty level, with a range between 1-3. The comprehensive score for a diver is determined as follows:

Discard the highest two scores and the lowest two scores.

Add the remainder of the scores.

multiply this by the difficulty of the dive. This is the overall score

Your program will create an array of 7 random numbers (between 1-10) for each diver. Your program will also create a random number for the difficulty. The code will then use these values to calculate the overall score for each diver. Then, it should display all 7 original diver scores (all on the same line) as well as the dive difficulty level and a Leader-board (this means the diver in the lead should be at the top. See the sample output below:

Diver 1 Scores: 1 3 5 5 8 8 9 Diver 2 Scores: 4 5 5 6 8 8 9 Dive Difficulty: 2 LeaderBoard ----------- Diver 2: 38 Diver 1: 36 

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