Computers and Technology

3. 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.
Write a python program that reads a text file consisting of following data:

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

1. Use a function to read the data from the file

2. Implement the logic using Dictionary, List, and String.

3. Use maketrans and translate functions to replace commas with spaces

4. Use split function to split the timings into individual elements of a list

5. Perform necessary calculations to display min, max, and avg timings of each athlete

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:00, EhHannuh6865
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
image
Computers and Technology, 23.06.2019 02:50, bfell92
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, MegRasmussen31
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
image
Computers and Technology, 24.06.2019 07:30, LuckyCharms988
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
Do you know the correct answer?
3. Coach Kyle has some top athletes who have the potential to qualify for Olympics. They have been t...

Questions in other subjects: