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

Respuesta :

Answer:

Written in Python

G = 6.673 *pow(10,-11)

M = 5.98 *pow(10,24)

d = float(input("Distance: "))

g = (G * M)/(pow(d,2))

print("Acceleration of gravity: "+str(g))

Explanation:

This line initializes the gravititational constant

G = 6.673 *pow(10,-11)

This line initializes the mass of the earth

M = 5.98 *pow(10,24)

This line prompts user for object distance

d = float(input("Distance: "))

This line calculates the object's gravity

g = (G * M)/(pow(d,2))

This line prints the calculated gravity without approximating

print("Acceleration of gravity: "+str(g))

Answer:

G = 6.673e-11

M = 5.98e24

dist_center = 6.3782e6

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

print(accel_gravity)

Explanation: