question archive Find the GPS locations for Atlanta, Georgia; Orlando, Florida; Savannah, Georgia; and Charlotte, North Carolina from www
Subject:Computer SciencePrice:2.89 Bought3
Find the GPS locations for Atlanta, Georgia; Orlando, Florida; Savannah, Georgia; and Charlotte, North Carolina from www.gps-data-team.com/map/ and compute the estimated area enclosed by these four cities.
use formula d= radius x arccos ( sin(x1) x sin(x2) + cos(x1) x cos(x2) x cos(y1 - y2))
Atlanta, GA :-84.4580600 , 33.6277100
Orlando, FL:-81.3065200 , 28.4562700
Savannah, GA:-81.0845000 , 32.0794000
Charlotte, NC:-80.8309220 , 35.1087160
a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))
# calculate the semi-perimeter
s = (a + b + c) / 2
# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)