subject

Write a program that computes the spherical distance between two points on the surface of the earth, given their latitudes and longitudes. this is a useful operation because it tells you how far apart two cities are if you multiply the distance by the radius of the earth, which is roughly 6372.795 km. let 1, 1, and 2, 2 be the latitude and longitude of two points, respectively. δ , the longitudinal difference, and δσ, the angular difference/distance in radians, can be determined as follows from the spherical law of cosines: σ = arccos(sin 1 sin 2 + cos 1 cos 2 cos ) for example, consider the latitude and longitude of two major cities: • nashville, tn: n 36°7.2′, w 86°40.2′ • los angeles, ca: n 33°56.4′, w 118°24.0′ l l l programming projects 187 you must convert these coordinates to radians before you can use them effectively in the formula. after conversion, the coordinates become • nashville: 1 36.12° 0.6304 rad, 1 86.67° 1.5127 rad • los angeles: 2 33.94° 0.5924 rad, 2 118.40° 2.0665 rad using these values in the angular distance equation, you get thus, the distance between these cities is about 2887 km, or 1794 miles. (note: to solve this problem, you will need to use the math. acos method, which returns an arccosine angle in radians.)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:10
In mathematics and computer science, a set is a collection in which order does not matter and there are no duplicates. in this problem, we are going to to define a class which wil allow us to create an object to represent a set of integers. you will write a program set.java to define the class set. each instance of the class set will be an object representing a set of integers.
Answers: 3
question
Computers and Technology, 25.06.2019 00:00
Rom is designed for computer instructions temporary storage of data processing data
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
The police department is excited to have some new motorcycle units. one officer said that these motorcycles can go from 0 miles per hour to 80 miles per hour in just 6 seconds. the officer is describing the motorcycle's a. average speed. b. distance. c. average velocity. d. acceleration.
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
When date is processed into a meaningful form, i becomes
Answers: 1
You know the right answer?
Write a program that computes the spherical distance between two points on the surface of the earth,...
Questions
question
Social Studies, 07.04.2021 07:20
question
Mathematics, 07.04.2021 07:20
question
Mathematics, 07.04.2021 07:20
question
Geography, 07.04.2021 07:20
question
Mathematics, 07.04.2021 07:20
question
Mathematics, 07.04.2021 07:20
question
Mathematics, 07.04.2021 07:20
question
Mathematics, 07.04.2021 07:20
Questions on the website: 13722359