The gravitational attractive force between two bodies with masses m, and m separated by a distance d is given by:

Where G is the universal gravitational constant:
![]()
Write a function definition that takes arguments for the masses of two bodies and the distance between them and that returns the gravitational force. Since you wall use the preceding formula, the gravitational force will be in dynes. One dyne equals
![]()
You should use a globally defined constant for die universal gravitational constant. Embed your function definition in a complete program that computes the gravitational force between two objects given suitable inputs. Your program should allow the user to repeat this calculation as often as the user wishes.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.