The Planetary Gravitational Calculator is used to calculate gravitational interactions between celestial bodies such as planets, moons, the sun, etc.
This law can be expressed by the following formula: F=G(m1⋅m2)/(r*r).
F denotes the magnitude of the gravitational force.
m1 and m2 is the mass of two objects.
r is the distance between two objects.
You just need to enter the mass of the two objects (kg) and the distance (m) between them,Not the size of the gravitational force.
Screenshots(Attach 2 screenshots of your own input and output) -
By raising this PR I affirm that -
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code.
[x] My code gives the correct output.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.
Issue Id you have worked upon -
551
Briefly explain your program logic -
The Planetary Gravitational Calculator is used to calculate gravitational interactions between celestial bodies such as planets, moons, the sun, etc. This law can be expressed by the following formula: F=G(m1⋅m2)/(r*r). F denotes the magnitude of the gravitational force. m1 and m2 is the mass of two objects. r is the distance between two objects. You just need to enter the mass of the two objects (kg) and the distance (m) between them,Not the size of the gravitational force.
Screenshots(Attach 2 screenshots of your own input and output) -
By raising this PR I affirm that -
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code.
[x] My code gives the correct output.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.