Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You'll need a function to display the list of all the data ( option 1 ) : all names and their 3 race scores. You

You'll need a function to display the list of all the data (option 1): all names and their 3
race scores. You do not have to display the average in this option
a function allowing the user to enter an existing runner's name, then calculate and
display the 3-race average of that individual runner (option 2). Round the average to a
whole number.
a function to add a new name and 3 times to the collection of runners. This info should
be saved when the program exits. (option 3). If the program is restarted the new data
should appear along with the original data.
a function to save and store all data back to the csv file (option 4) in the comma-
separated format. use csv.DictWriter()
optionally, a function to read the data from the file. You will likely want to use the
csv.DictReader() library here.
also, you must submit the data file you received along with your program code.
ror option 2 you should be able to enter a name, like tlaine, and have tlaine's three-
race averape displayed in whole minutes. You don't necd fractions of a minute.
For option 3 you should be able to enter a new name and 3 race times, and have that
new record be properly saved to the data file on option 4.
A user of your agram should be able to interact with the program as much as they
want before defiding to save an exit.
baker, 298,290,285
garcia, 301,293,300
carrol, 340,298,288
hanks, 266,282,273
estle, 258,260,245
zelda, 301,297,300
grady, 427,380,334
davis, 321,341,306
marta, 408,381,388
rickie, 301,288,300
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago