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: