Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python idole for the output program given below for the file that I have put up that stores the locations for all of the

Use Python idole for the output program given below for the file that I have put up that stores the locations for all of the modern Olympic summer games. Please flow the directions and creat a output program that works. Use comments and make you work very clear so that each line is correct. I am new to this and need all the help I can get. Thank you so much.
image text in transcribed
image text in transcribed
image text in transcribed
File Edit View History Bookmarks People Window Help Inbox (524 matthew marwel x SakalaURI: csc 110 Spring x c chegg study l Guided solutio x l Secure https//sakai.uri.edu/portal/site/e3dbb580-16f5-4 Given the following file that stores the locations of all modern summer olympic games: 10 de La write a program that readsin the fie and alows avser to took up the location of the summer olympics na partautar year specifically, the program wil 1. Ask the user to enter the name of the data file. 2. Read the data from the file into two lists one for the years and one for the locations. 3. Ask the user to enter the year for which they are interested in the location of the olympics. 4. Print the location of the olympics for that year Here are a few things to note when working on this program: 1. In the text file, the data is delimited by a tab so you will need to use the following command to get a line of data from year, loc line split ("It" 2. You should have at least three functions in the program: getData, findLocation and main. 3. Be sure to test that the file entered by the user exists and catch the error with exception handling. 4. Be sure to test that the year entered by the user is an integer and catch the error with exception handling

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

Step: 3

blur-text-image

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions