Question: In this project, course h the data file cities.txt. The file is available in the files section of this Project 1 For this project, you

 In this project, course h the data file cities.txt. The file

In this project, course h the data file cities.txt. The file is available in the files section of this Project 1 For this project, you will have to calculate the distance between two points on the planet by assuming Earth is a perfect sphere or radius R 6360 km. You can use the Haversine formula to calculate this distance: d-2 R arcsin (V sir(n2n) + cos(p) cos(p) sin2 ( ) where ,2 are the latitude (north-south position) of point 1 and latitude of point 2, and , 2 are the longitude (east-west position) of point 1 and longitude of point 2. All of these magnitudes are in radians Please remember latitudes and longitudes in the data fle are based on geographical degrees,_not decimal degrees. This means you will have to convert the data from its current DMS (degree-minute-second) format. This can be easily achieved by considering a degree is divided into sixty minutes. That means we can convert from a DMS coordinate to a decimal degree coordinate Cdec by using the following formula: AM dee- For example, the DMS coordinate 2326' N converts to 23.43 N using this system. Finally, notice this approach gives you degrees, not radians. Part 1: Python Write a program that will make travel recommendations to a user. Your program should read the provided data file and output the top five travel destinations organized by distance from UC Merced. These destinations will be selected based on their latitude and longitude. For this project you can assume UC Merced is located at 3722'N and 12042W. Your program should have the following features: 1. Read the data in cities.txt 2. Ask the user when they will take their holiday. The options are Summer or Winter 3. Ask the user if they want to go to a cold or warm destination. The table below will help you determine which places are cold or warm depending of the season 4. Output a final recommendation of the top five travel destinations (city, province/state, and country) sorted by distance to UC Merced Winter Cold Cold Latitude Summer 66 N Cold Between 35 N and 66 N Between 35 S and 35 N Between 35 S and 66 S Below 66 S arm arm arm arm Cold Cold In this project, course h the data file cities.txt. The file is available in the files section of this Project 1 For this project, you will have to calculate the distance between two points on the planet by assuming Earth is a perfect sphere or radius R 6360 km. You can use the Haversine formula to calculate this distance: d-2 R arcsin (V sir(n2n) + cos(p) cos(p) sin2 ( ) where ,2 are the latitude (north-south position) of point 1 and latitude of point 2, and , 2 are the longitude (east-west position) of point 1 and longitude of point 2. All of these magnitudes are in radians Please remember latitudes and longitudes in the data fle are based on geographical degrees,_not decimal degrees. This means you will have to convert the data from its current DMS (degree-minute-second) format. This can be easily achieved by considering a degree is divided into sixty minutes. That means we can convert from a DMS coordinate to a decimal degree coordinate Cdec by using the following formula: AM dee- For example, the DMS coordinate 2326' N converts to 23.43 N using this system. Finally, notice this approach gives you degrees, not radians. Part 1: Python Write a program that will make travel recommendations to a user. Your program should read the provided data file and output the top five travel destinations organized by distance from UC Merced. These destinations will be selected based on their latitude and longitude. For this project you can assume UC Merced is located at 3722'N and 12042W. Your program should have the following features: 1. Read the data in cities.txt 2. Ask the user when they will take their holiday. The options are Summer or Winter 3. Ask the user if they want to go to a cold or warm destination. The table below will help you determine which places are cold or warm depending of the season 4. Output a final recommendation of the top five travel destinations (city, province/state, and country) sorted by distance to UC Merced Winter Cold Cold Latitude Summer 66 N Cold Between 35 N and 66 N Between 35 S and 35 N Between 35 S and 66 S Below 66 S arm arm arm arm Cold Cold

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!