Answer:
Explanation:
The solution code is written in Java.
Firstly declare all the necessary variables to hold the scores from 7 judges, degree of difficulty, sum and overall score (Line 8-11)
Create a for loop that run for 7 iterations to get user input for score (Line 15-20). A do while loop is included to set the condition that the input score must be between 0 to 10 in order to proceed to the next input.
Next, get the user input for the degree of difficulty (Line 22-25). Here the do while loop is used again to ensure the input of difficulty must be 1.2-3.8.
Next, use the Java Arrays sort method to sort the scores array in ascending order (Line 27).
Sum up the scores of the array (Line 28-30) and apply the formula as given in the question to calculate the overall score (Line 32). Display the overall score to terminal (Line 33).