Question: *Python Code* Please type it, do not hand write it. Example Ouput- Enter the city you are looking for: Caracas Caracas is 10 degrees 30

*Python Code* Please type it, do not hand write it.

*Python Code* Please type it, do not hand write it. Example Ouput-

Example Ouput-

Enter the city you are looking for: Caracas Caracas is 10 degrees 30 minutes N and 66 degrees 55 minutes W Enter the city you are looking for: Riverdale City not found!

__________________________________________________

Cities.txt file (it is downloadable if necessary)

https://1drv.ms/t/s!AkEp1U-yQu2xjVepGZe9KVbyS7z8

Exercise 1 Write a program that tells the user what the coordinates are for a given city. Use the cities.txt file provided in the Files section of this class. Your program should read the data in that file, find the city given by the user, and return a message with the coordinates as shown in the example below. Your program should also change the coordinate format used in the data file to a plain text format. For example, the coordinate "8230N" should be converted to 80 degrees and 30 minutes N". If the city is not found in the data file, your program should write a message accordingly. See the output examples below Exercise 1 Write a program that tells the user what the coordinates are for a given city. Use the cities.txt file provided in the Files section of this class. Your program should read the data in that file, find the city given by the user, and return a message with the coordinates as shown in the example below. Your program should also change the coordinate format used in the data file to a plain text format. For example, the coordinate "8230N" should be converted to 80 degrees and 30 minutes N". If the city is not found in the data file, your program should write a message accordingly. See the output examples below

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 Databases Questions!