Question
Find the distance between two latitudes and longitudes while also dealing with unit conversions using haversine formula and the radius of the earth is radius_mean=1/3(2e+p)
Find the distance between two latitudes and longitudes while also dealing with unit conversions using haversine formula and the radius of the earth is radius_mean=1/3(2e+p)
Set as a known location the coordinates for the Royal Tyrell Museum, latitude: 51.47934 & longitude: ----112.79009. Ask the user for any latitude and longitude location in Alberta, in decimal form precise to 6 decimal places. One can use Google Maps to find the coordinates of a place. Develop and use a function to find the distance, rounded to the nearest 100 meters, between the two locations. See later on in this document for the formulae to be used. Develop and use a function to convert both locations decimal coordinates into degrees, minutes and seconds (D:M:S format) with the seconds precise to 4 decimal places. Display the coordinates in D:M:S format and the distance between the two points.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started