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....
-
What are clearing balances? Of what benefit can clearing balances be to a depository that uses the Federal Reserve Systems check-clearing network?
-
A mixture containing 65.0 mole% acetone (Ac) and the balance acetic acid (AA) is separated in a continuous distillation column at 1 atm. A flowchart for the operation is as follows: The overhead...
-
If your instructor assigns a marketing plan for your class, we hope you will be excitedfor two reasons. First, you will get insights into trying to actually do marketing that often go beyond what you...
-
Zelmer Company uses budgets in controlling costs. The August 2010 budget report for the company??s Assembling Department is as follows. The monthly budget amounts in the report were based on an...
-
If the trend towards authoritarianism continues and more democracies move towards the totalitarian side of the spectrum, how could that affect the international political system?
-
As the bookkeeper of Petes Plowing of Fredericton, you have been asked to complete the entire accounting cycle for Pete from the following information Adjustment Data a. Snow supplies on hand, $400...
-
Please The following information s available for year 1 for Pepper Products: Sales revenue (200,000 units) Manufacturing costs Materials Variable cash costs Fixed cash costs Depreciation (fixed)...
-
Two heaters A and B are in parallel across supply voltage V . Heater A produces 5 0 0 kcal in 2 0 0 min and B produces 1 0 0 0 kcal in 1 0 min. The resistance of A is 1 0 ohms. What is the resistance...
-
7. Northwest Natural Holding (NWN) paid $1.93 dividend in the past year (2021). a. Analysts expect its annual dividend to be $2.00 in the next year and then the dividend growth rate will be 3% per...
-
In a local boutique, you intend to buy a handbag with an original price of $38, a jacket with an original price of $189, and a scarf with an original price of $23. Currently, the store is running a...
-
Suppose you wish to buy a house costing $4000000. You will put a down payment of 60% of the purchase price and borrow the rest from a bank for 30 years at a fixed annual interest rate r. If you wish...
-
During the year just ended, Honeyblue Corp. incurred costs to develop and produce a routine, low-risk computer software product as follows: Completion of detail program design $13,000 Costs incurred...
-
A heat pump operates between the temperature range of 850 K and 400 K .Find the COP(Coefficient of Performance) of heat pump.
-
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...
-
Which of the following statements regarding applications of ETFs in portfolio management is correct? A. Equity ETFs tend to be more active than fixed-income ETFs. B. The range of risk exposures...
-
Which of Stosurs statements regarding ETF mechanics is correct? A. Statement 1 B. Statement 2 C. Statement 3 Howie Rutledge is a senior portfolio strategist for an endowment fund. Rutledge meets with...
-
Factor (smart beta) strategy ETFs are least likely to be used by investors: A. to modify portfolio risk. B. for tactical trading purposes. C. to seek outperformance versus a benchmark.
Study smarter with the SolutionInn App