...

/

Exercise: Gravitational Force

Exercise: Gravitational Force

Calculate the gravitational force between Earth and the Moon.

Problem statement

Gravitational force is the attractive force that exists between two massesMass is a measure of the amount of matter in an object., pulling them toward each other. It can be calculated by using the following formula:

GMmr2\dfrac{G Mm}{r^2}

where G is the gravitational constant, M and m are the two masses, and r is the distance between them. You are required to implement this equation in Python to calculate the gravitational force between Earth and the Moon. ...