103k views
5 votes
ompute 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 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 for the given program is:

User Mrco
by
5.9k points

1 Answer

4 votes

Answer:

Step-by-step explanation:

Given that

Gravitational Constant, G = 6.673*10^-11

Mass of the earth, M = 5.98*10^24 kg

Since we are no given a distance, d. It's safe for us to assume any distance we like.

For example, if we assume our d to be 1 m, then we have

a = GM/d²

a = (6.673*10^-11 * 5.98*10^24) / 1²

a = 3.99*10^14 m/s²

In another instance, if we assume the distance d, to be the distance between the Earth and the Sun, we have that d to be 150*10^9 m. Our acceleration would then be

a = GM/d²

a = (6.673*10^-11 * 5.98*10^24) / (150*10^9)²

a = 3.99*10^14 / 2.25*10^24

a = 1.77*10^-8 m/s²

We have two different accelerations

Thus we can see that our acceleration would be dependent on the distance given

User Tiago
by
5.5k points