Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PROGRAMMING QUESTION!! FOR PYTHON Compute the acceleration of gravity for a give

ID: 3781539 • Letter: P

Question

PROGRAMMING QUESTION!! FOR PYTHON

Compute the acceleration of gravity for a given distance from the earth's center, dist_center, assigning the result to accel_gravity. 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:

The information they give me already states:

G = 6.673e-11
M = 5.98e24
dist_center = 6.38e6

'''Your solution goes here'''

print(accel_gravity)

Explanation / Answer

G = 6.673e-11
M = 5.98e24
dist_center = 6.38e6
accel_gravity = (G * M) / (dist_center**2)
print(accel_gravity)

-------------------------------------------------------------------------
9.80349544521

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote