The shortest distance between two points on a sphere is shown to be on the arc...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) a∙b=xax + Ya Yb + ²a²b 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. 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) a∙b=xax + Ya Yb + ²a²b 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.
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these electrical engineering questions
-
Show that the shortest distance between two points on a plane is a straight line.
-
The rate of heat flow (conduction) between two points on a cylinder heated at one end is given by dQ/dt = AdT/dx where = a constant, A = the cylinders cross-sectional area, Q = heat flow, T =...
-
The distance between two points on a vertical photograph is ab and the corresponding ground distance is AB. For the following data, compute the average photographic scale along the line ab. (a)* ab =...
-
2. Using the data below, create the project schedule using normal times. Determine the order in which you would crash the project one day, two days, and so on until it is in an all-crash mode....
-
Will a nation tend to export or import goods for which it has a comparative advantage? Explain.
-
This is all the information I have for this problem. A Form 1040, Schedule 1, Schedule 2, Schedule 3, Schedule A, Schedule B, Schedule C, Schedule D, Schedule E, Schedule SE and Forms 2441, 4562,...
-
Angela Rodriguez practices law under the business title Angela Rodriguez Attorney at Law, Inc. During June, her law practice engaged in the following transactions: Rodriguezs business uses the...
-
1. Where does Hewitt's leadership fall on the Managerial Grid discussed in the chapter? Explain. 2. What deficiencies or shortcomings would you identify in Hewitt's leadership? 3. Is Hewitt's...
-
What is the standard deviation of an investment that has the following expected scenario? Probability of Expected Occurrence Return Recession 22% 2.0% Moderate Economy 61% 9.5% Strong Economy 17%...
-
Most businesses sell several products at varying prices. The products often have different unit variable costs. Thus, the total profit and the breakeven point depend on the proportions in which the...
-
Q 10.7: Under what circumstances might an estimated liability, also called an uncertain liability, be recognized (recorded) in the accounting records? A If the event appears probable, but the amount...
-
The total number of people at a football game was 5 6 0 0 . Field - side tickets were 4 0 dollars and end - zone tickets were 2 0 dollars. If the total amount of money received for the tickets was $...
-
Assets Cash Accounts receivable (net of $4,000 allowance for doubtful accounts) Inventory Property, plant, and equipment (net of $560,000 accumulated depreciation) Total assets Liabilities and...
-
Ty ' s scout troop is picking up litter at the park. Each trash bag holds 8 pounds of litter. The scout troop collected a total of 2 3 0 pounds of litter. How many trash bags did they use?
-
Wages of $11,000 are earned by workers but not paid as of December 31. Depreciation on the company's equipment for the year is $11,440 The Supplies account had a $360 debit balance at the beginning...
-
Rewrite this measurement with a simpler unit, if possible. kg.m 9.3 2 m m 2
-
how is an underwriting consideration affecting indirect coverage under residential property policies? discuss.
-
Wimot Trucking Corporation uses the units-of-production depreciation method because units-of-production best measures wear and tear on the trucks. Consider these facts about one Mack truck in the...
-
Write a program that demonstrates the properties of a text area. The program uses a check box to indicate whether the text is wrapped onto next line, as shown in Figure 16.41a. Four score and seven...
-
Add a new method in AbstractGraph to determine whether there is a cycle in the graph with the following header: public boolean isCyclic();
-
The equation of a parabola can be expressedin either standard form (y?=?ax 2 + bx + c) or vertex form (y = a(x - h)2 + k).Write a program that prompts the user to enter a, b, and c as integers in...
-
Jerome Kerviel was born and raised in Pont-lAbbe, a small coastal village in the Brittany region of northwestern France. His father was a blacksmith, while his mother worked as a hairdresser....
-
Identify the four concerns that management has in establishing internal controls. Explain how each of those four concerns can be part of operational auditing.
-
During the mid-1980s, Stephen W. Gray owned and operated a small CPA firm in Columbia, Mississippi.1 Located in south-central Mississippi near the banks of the Pearl River, Columbias population of...
Study smarter with the SolutionInn App