26.6k views
0 votes
Compute the approximate acceleration of gravity for an object above the earth's surface, assigning accel gravity with the result. The expression for the acceleration of gravity is: (G * M) / (d 2), where G is the gravitational constant 6.673 x10-11, M is the mass of the earth 5.98 x 1024 (in kg), and d is the distance in meters from the Earth's center (stored in variable dist center).

Sample output with input: 6.3782e6 (100 m above the Earth's surface at the equator) Acceleration of gravity: 9.81

1 Answer

5 votes

Answer:

G = 6.673e-11

M = 5.98e24

dist_center = 6.3782e6

accel_gravity = (G*M)/(dist_center * dist_center)

print(accel_gravity)

Step-by-step explanation:

User Aug
by
5.1k points