I need help writing this program. \"In a gymnastics or divingcompetition, each c
ID: 3607946 • Letter: I
Question
I need help writing this program. "In a gymnastics or divingcompetition, each contestant's score is calculated by dropping thelowest and highest scores and then adding the remaining scores.Write a program that allows the user to enter eight judges' scoresand then outputs the points received by the contestant. Format theoutput with two decimal places. A judge awards points between 1 and10, with 1 being the lowest and 10 being the highest. For example,if the scores are 9.2, 9.3, 9.0, 9.9, 9.5, 9.6, and 9.8, thecontestant receives a total of 56.90 points.
Any help would be appreciated.