Question: Your program should parse this file and for each line, output the divers name, the dive D D , and the score for that dive

Your program should parse this file and for each line, output the divers name, the dive
DD, and the score for that dive with proper headers.
To determine an athlete's final score for a dive, the highest and lowest judges scores
are identified and discarded. The average of the remaining scores is calculated and is
then multiplied by the DD, resulting in the final score for the dive. If there are multiple
instances of the highest or lowest score, only one should be removed.
The input file should be attached to this dropbox
Save your program as
Exam3.py and upload your source file to the appropriate dropbox
in GradeScope, NOT D2L!
Sample Input File Data:You have been asked by the Olympic committee to write a program for scoring the
Olympic diving events.
In an Olympic diving event, each dive has a degree of difficulty (DD). The dives are
evaluated by a panel of 7 judges who can award 0 to 10 points. Write a program that
will read the data file named input.txt attached to this drobbox that contains the event
information. Each event file will contain an arbitrary number divers.
Please assume the input file is in the same folder as your python program.
Each tab separated line will contain in order:
-A diver name
-The DD
-7 scores for the dive
Your program should parse this file and for each line, output the divers name, the dive
DD, and the score for that dive with proper headers.
To determine an athletes final score for a dive, the highest and lowest judges scores
are identified and discarded. The average of the remaining scores is calculated and is
then multiplied by the DD, resulting in the final score for the dive. If there are multiple
instances of the highest or lowest score, only one should be removed.
Your program should parse this file and for each

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!