Question: Problem 5. (Gravitational Foree) Write a program gravitational force.py that takes flosts m and m2 representing the masses in kg) of two objects and a

 Problem 5. (Gravitational Foree) Write a program gravitational force.py that takes

Problem 5. (Gravitational Foree) Write a program gravitational force.py that takes flosts m and m2 representing the masses in kg) of two objects and a float r representing the distance (in m) between their centers as command-line arguments and writes the gravitational force F (in N) acting between the objects, calculated as F=G where G= 6.674 10-11 (in m 3 kg-1 s-2) is the gravitational constant. python3 gravitational.force Py 2e30 6e24 1.5e11 3.5594666666666664e+22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!