In this project, you will work with the data file cities.txt. The file is available in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this project, you will work with the data file cities.txt. The file is available in the files section of this course. 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 ( sin² 42-41 2 | + cos(4₁) cos(42) sin² (¹-¹)) 2 where 41, 42 are the latitude (north-south position) of point 1 and latitude of point 2, and A₁, A₂ 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 file 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: Cdec = D + S 3600 For example, the DMS coordinate 23°26' N converts to 23.43 N using this system. Finally, notice this approach gives you degrees, not radians. In this project, you will work with the data file cities.txt. The file is available in the files section of this course. 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 ( sin² 42-41 2 | + cos(4₁) cos(42) sin² (¹-¹)) 2 where 41, 42 are the latitude (north-south position) of point 1 and latitude of point 2, and A₁, A₂ 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 file 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: Cdec = D + S 3600 For example, the DMS coordinate 23°26' N converts to 23.43 N using this system. Finally, notice this approach gives you degrees, not radians.
Expert Answer:
Answer rating: 100% (QA)
To calculate the distance between two points on the Earths surface using the Haversine formula we ne... View the full answer
Related Book For
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke
Posted Date:
Students also viewed these accounting questions
-
Find the energy stored in a uniformly charged solid sphere of radius R and charge q by using: =ofEdr dt W (Hint: integrate over all space; dt = r sine dr de do )
-
Calculate the distance between two atoms of a basis of a diamond structure if the lattice constant of the structure is 5 angstroms.?
-
In this project you will construct an increasing function that is discontinuous at each rational point in (0, 1) and continuous at each irrational point in (0, 1). We will need two basic facts: a....
-
>> ((5.2^3-6.4^2+3) / (1.6^8-2))+((13.3)^1.5/(5))ans 12.2075MATLABIS THE ANSWER CORRECT? \( \gg\left(\left(5.2^{\wedge} 3-6.4^{\wedge} 2+3ight) /\left(1.6^{\wedge} 8-2ight)ight)+\left((13.3)^{\wedge}...
-
Costs of identical assets are always a Level 1 measurement under SFAS No. 157. Is this statement correct? Explain.
-
A house has a composite wall of wood, fiberglass insulation, and plaster board, as indicated in the sketch. On a cold winter day the convection heat transfer coefficients are ho = 60 W/m'2. K and hi...
-
What are some of the nonverbal clues to deception?
-
Waldo Corporation has recently retained your accounting firm to prepare its income tax return. Art, the partner in charge of the engagement, has assigned you the job of reviewing last years return...
-
The relation below concerns Invoice information. INVOICE (INV-No, INV-DATE, CUSTOMER-No, CUST-NAME, CUST-ADDRESS, SWPACK-ID, SWPACK-DESCR, UNIT-PRICE, SWPACK-QTY) For a given invoice (identified by...
-
Evergreen Corporation (calendar-year end) acquired the following assets during the current year: *The delivery truck is not a luxury automobile. a. What is the allowable MACRS depreciation on...
-
The initial margin for traders in the SP1200 contract is $7,655 per contract and the maintenance margin is $6,806 per contract. Consider the following table of trades in the SP1200 futures contract....
-
What is the ranking of airlines from highest to lowest in terms of total revenue in 2018? Is there a correlation between unearned revenue to total revenue ratio and total revenue in 2018?
-
Consider the relationship between Retained Earnings that is reported on the balance sheet and Net Income that is reported on the Income Statement and select the correct answer: Question 1 options:...
-
in the text, the developer only intend to finance the construction of the project. should the 8% be applied directly to the construction cost or both construction costs and professional fees,...
-
In a CBA for a new mine proposal, the analyst describes the following for the social cost of carbon: Greenhouse Gas Generation - the mine would generate in the order of 1.4 million tonnes (Mt) of...
-
A taxpayer buys and swaps NFTs and stablecoins throughout the year. Are they going to have to mark "yes" to the digital asset question on the Form 1040 for the return? Select one: a. No, since the...
-
Leo launched a new ad campaign. After looking at the campaign performance in Campaign Manager, he wants to improve his ad creative. What should he do ?
-
What does non-recourse financing mean?
-
The two cities Minneapolis, Minnesota, and Lake Charles, Louisiana, lie on the 93° W longitudinal line. The latitude of Minneapolis is 45° N (45° north of the equator) whereas the...
-
Formulas play an important part in many fields of mathematics and science. You can create a new formula using substitution to combine formulas. a. Using the formulas A = s2 and d = s2 write a formula...
-
Assume (PQR is an acute triangle. Find the measure of (P. 8.13 em 8.83 cm
-
A change in chromosome structure that does not involve a change in the total amount of genetic material is a. a deletion. b. a duplication. c. an inversion. d. none of the above.
-
The term endopolyploidy refers to the phenomenon of having a. too many chromosomes. b. extra chromosomes inside the cell nucleus. c. extra sets of chromosomes in certain cells of the body. d. extra...
-
During transduction involving a P1 phage, a. any small fragment of the bacterial chromosome may be transferred to another bacterium by a new phage. b. only a specific fragment of DNA may be...
Study smarter with the SolutionInn App