Newton's Law for Universal Gravitational Attraction
In this section you will practice and apply what you have learned from the Newton's Law for Universal Gravitational Attraction simulations, creating a calculator to calculate the Universal Gravitational Attraction given two masses and a radius and understanding the calculations being done.
If you are looking for a reference for Python consider looking at the Python Reference Sheet on the site.
Below are sample runs of some of the outputs you should get when running the program.
Newton's Law for Universal Gravitational Attraction
For user input M = 59213725400, m = 21106750, and r = 100, the output should be:
For user input M = 100000000000, m = 200000, and r = 50, the output should be:
For user input M = 1234567890, m = 987654321, and r = 2, the output should be:
For user input M = 1.89813 E27, m = 3.285 E23, and r = 720420000000, the output should be:
For user input M = 1.9891 E30, m = 5.97219 E24, and r = 150000000000, the output should be:
Here is a code editor so that you can compute your calculator program.
Go Back to Force Exercises Page