Computers and Technology

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.)

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:40, lizzlegnz999
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles. all forms of media will her decide because the media always portrays rigid ideas about gender roles. all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, kenken2583
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
image
Computers and Technology, 23.06.2019 11:30, magicalpenguin48
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, taytay1828
What are the 12 colors of the spectrum called?
Answers: 1
Do you know the correct answer?
Write a program that computes the spherical distance between two points on the surface of the earth,...

Questions in other subjects:

Konu
Mathematics, 09.02.2021 14:00