subject

Coach Kyle has some top athletes who have the potential to qualify for Olympics. They have been training very had for the 5000 and 10000 meters running competition. The coach has been recording their timings for each 1000 meters. In the practice sessions, each athlete runs a distance in multiples of 1000 meters and the coach records their time for every 1000 meters. Put the following in a text file called timings. txt. This is not a Python program. Just open up a text editor and copy the following to a file. Alice,3:15,2:45,3:30,2:27,3:42 Bob, 2:25,3:15,3:20,2:57,2:42,3:27 Charlie, 2:45,3:25,3:50,2:27,2:52,3:12 David,2:15,3:35,3:10,2:47 Write a main function that calls read_data, determines the min and max, calls get_average, and prints as below. a) Function read_data will read the file and returns a dictionary with the athlete information. b) Function get_average will accept a list of times and return the average time in the format min:sec. c) Use the split function to split the timings into individual elements of a list. d) Be sure to handle exceptions for files and incorrect data. Athlete Min Alice 2:27 Bob 2:25 Charlie 2:27 David 2:15 Max 3:42 3:27 3:50 3:35 Average 3:07 3:01 3:05 2:56

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
question
Computers and Technology, 24.06.2019 14:40
Create a function (prob3_6) that will do the following: input a positive scalar integer x. if x is odd, multiply it by 3 and add 1. if the given x is even, divide it by 2. repeat this rule on the new value until you get 1, if ever. your program will output how many operations it had to perform to get to 1 and the largest number along the way. for example, start with the number 3: because 3 is odd, we multiply by 3 and add 1 giving us 10. 10 is even so we divide it by 2, giving us 5. 5 is odd so we multiply by 3 and add one, giving us 16. we divide 16 (even) by two giving 8. we divide 8 (even) by two giving 4. we divide 4 (even) by two giving 2. we divide 2 (even) by 2 to give us 1. once we have one, we stop. this example took seven operations to get to one. the largest number we had along the way was 16. every value of n that anyone has ever checked eventually leads to 1, but it is an open mathematical problem (known as the collatz conjectureopens in new tab) whether every value of n eventually leads to 1. your program should include a while loop and an if-statement.
Answers: 3
question
Computers and Technology, 24.06.2019 22:30
To add additional commands to the quick access toolbar, a user can navigate to the view. backstage status bar design file
Answers: 2
You know the right answer?
Coach Kyle has some top athletes who have the potential to qualify for Olympics. They have been trai...
Questions
question
Geography, 29.01.2020 06:01
question
Mathematics, 29.01.2020 06:01
question
Mathematics, 29.01.2020 06:01
Questions on the website: 13722363