Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi. I just learned arrays and this is my java assignment.Help??!? Background: In

ID: 3617296 • Letter: H

Question

Hi. I just learned arrays and this is my java assignment.Help??!? Background: In Gymnastics, 7 judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are discarded and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for a particular activity. The degree of difficulty is between 0.5 to 2.4. The total is then multiplied by 0.6 to determine the overall score. Task: Write a program that inputs a degree of difficulty and seven judges' scores and outputs the overall score for a gymnast. The program should ensure that all inputs are within the allowable data ranges.

Explanation / Answer

publicstatic void main(String[]args) { Scanner input= newScanner(System.in); // input degree ofdifficulty System.out.print("Enter thedifficulty: "); double difficulty= input.nextDouble(); double[] scores= newdouble[7]; // enterscores System.out.print("Enter thescores: "); for(int i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote