157k views
1 vote
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)/(d2), where G is the gravitational constant 6.673 x 10-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

User Kushan
by
6.1k points

1 Answer

3 votes

Answer:

The summary of the given query would be summarized throughout the below segment. The output of the question is attached below.

Step-by-step explanation:

Given values are:


  • G = 6.673e-11

  • M = 5.98e24

  • accel \ gravity = 0

  • dist\ center=float(inp())

here,

inp = input

By utilizing the below formula, we get


(GM)/(d^2)

Now,


accel \ gravity=(G* M)/(dist \ center**2)

⇒ print("Acceleration of gravity: {:.2f}".format(accel_gravity))

Compute the approximate acceleration of gravity for an object above the earth's surface-example-1
User Aprel
by
5.6k points