Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The shortest distance between two points on a sphere is shown to be on the arc of the great circle containing them. If we
The shortest distance between two points on a sphere is shown to be on the arc of the great circle containing them. If we know the angle between vectors from the center of the earth to the two points defining the arc, we can then estimate the distance as a proportion of the earth's circumference. The best way to compute the shortest distance between two points that are specified in latitude and longitude is through a series of coordinate transformations. We need to use equations that relate latitude and longitude to spherical coordinates, convert spherical coordinates to rectangular coordinates, and that compute the angle between two vectors. Spherical coordinates (radians); a(90-Latitude") 0-(360-Longitude") 3960 Rectangular coordinates (radians): X-a sin a cos 0 ya sin a sin 0 2-p cos e Angle between Vectors (dot product) ab=xax + Ya Yb + ab lal=SQRT(x+y+z) cos = a b / lallbl acos(a b/lallbl Great Circle Distance = p Write a program that will compute and display the great circle distance between Minneapolis and Sydney, Australia. The latitude and longitude of Minneapolis is 45 N and 93.2 W, respectively, and the latitude and longitude of Sydney is 33.9 S and 151.2 E, respectively. The program should have a function "main", which calls another function to calculate the great circle dista the "main" function, and the great circle distance displayed. Note: Be sure to pay attention to the designated hemisphere values of Sydney. Your solution must include: 1) Problem statement/definition (20 pts) (20 pts) 2) Input/Output Diagram 3) Hand Example (include graphic of coordinate systems) 4) Algorithm 5) C Program (20 pts) (20 pts) V.
Step by Step Solution
★★★★★
3.42 Rating (152 Votes )
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