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

Here is the task I need help with... In a gymnastics or diving competition, each

ID: 3609135 • Letter: H

Question

Here is the task I need help with...
In a gymnastics or diving competition, each contestants score iscalculated by dropping the lowest and highest scores and thenadding the remaining scores.
Write a program that allows the user to enter eight judges'scores and then outputs the points recieved by thecontestant. Format the output with two decimal places. A judge awardspoints between 1 and 10, with 1 being the lowest and 10 being thehighest. For example, if the scores are 9.2, 9.3, 9.0 9.9, 9.5, 9.6. and 9.8, the contestant receivesa total of 56.90 points. Here is the task I need help with...

Write a program that allows the user to enter eight judges'scores and then outputs the points recieved by thecontestant. Format the output with two decimal places. A judge awardspoints between 1 and 10, with 1 being the lowest and 10 being thehighest. For example, if the scores are 9.2, 9.3, 9.0 9.9, 9.5, 9.6. and 9.8, the contestant receivesa total of 56.90 points.

Explanation / Answer

please rate - thanks import java.util.*; import java.text.*; public class competitionScore { public static void main(String args[])    {int i;    double max=-1,min=50,sum=0;    DecimalFormat twodecimal = newDecimalFormat("#0.00");    String formattednumber;    Scanner in=new Scanner(System.in);     double score[] = new double[8];    for(i = 0; i < 8; i++)         {System.out.print("Enterscore " + (i+1) + ": ");          score[i] =in.nextDouble();            if(score[i]>max)               max=score[i];            else               if(score[i]