Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
A state wishes to computerize the scoring at its diving competition. The program will input the diver's name, city, the scores of the five judges,...
A state wishes to computerize the scoring at its diving competition. The program will input the diver's name, city, the scores of the five judges, and the degree of difficulty. Each diver receives a score (0 - 10) from five judges. The overall score is obtained as follows: all five scores are added. The highest and lowest scores are always assumed to be skewed, or inaccurate, so they are dropped. Divide the resulting score by 3 and multiply that by the degree of difficulty. The degree of difficulty ranges from 1.00 to 1.67. Display the diver's information and overall score.After all divers have been processed, a summary report listing the number of divers and the average score of the divers will be displayed to the screen.When writing this lab, use nested loops. A nested loop is where one loop is completely contained in another loop. In an inner loop, you will read the five scores one at a time. Every time you read the score (in the loop), you will compare the score to the highest so far and also to the lowest so far, so that you can determine the highest and lowest scores in addition to adding the scores up one at a time.You also need to have your program process multiple divers. Put this in an outer loop. After you process the information for one diver, prompt the user if she/he wants to process another diver. Allow the user to type either a “Y” or a “y” to enter another diver's information; otherwise, exit the loop. Write an event summary by calculating and displaying the average score for all divers and the total number of divers participating.The data being entered by the user needs to be validated. GIGO – Garbage In/Garbage Out. Scores by judges may range between 0 and 10 inclusive. If the user enters an invalid score, display an error message, and prompt for the score again. Keep doing this until the user enters the score correctly. The degree of difficulty may range from 1.00 to 1.67 inclusive. Sample output from programReport to the mediaEvent: Diving competitionEnter the diver's name: Sue JonesEnter the diver's city: DallasEnter the score given by judge #1: 45Invalid score - Please reenter (Valid Range: 0 - 10)Enter the score given by judge #1: 3Enter the score given by judge #2: 4.5Enter the score given by judge #3: 6.7Enter the score given by judge #4: 89Invalid score - Please reenter (Valid Range: 0 - 10)Enter the score given by judge #4: 8Enter the score given by judge #5: 9.2What was the degree of difficulty? 1.9Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)What was the degree of difficulty? 2Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)What was the degree of difficulty? 1.2Diver: Sue Jones, City: DallasOverall score was 7.68Do you want to process another diver (Y/N)? yEnter the diver's name: Dave SmithEnter the diver's city: HoustonEnter the score given by judge #1: 5.7Enter the score given by judge #2: 6.8Enter the score given by judge #3: 7.6Enter the score given by judge #4: 8.7Enter the score given by judge #5: 6.7What was the degree of difficulty? 1.1Diver: Dave Smith, City: HoustonOverall score was 7.74Do you want to process another diver (Y/N)? nEVENT SUMMARYNumber of divers participating: 2Average score of all divers: 7.71Press any key to continue . . .Step 2: Processing LogicUsing the pseudocode below, write the code that will meet the requirements:Write report headingLoop as long as there are divers to process