Question: help me fix my c++ code 8. (6 points) Newton's law states that the force, F, between two bodies of masses Mi and M2 is
help me fix my c++ code
8. (6 points) Newton's law states that the force, F, between two bodies of masses Mi and M2 is given by: in which k is the gravitational constant and d is the distance between the bodies. The value of k is approximately 6.6710-8 dyn. cm2/g2. Write a program that prompts the user to input the masses of the bodies and the distance between the bodies. The program then outputs the force between the bodies include Kiostres> using nanespace std; int main .windows, systern32'.cmdexe dacunentswisual studio 2813 Projecta ConsoleApplication1 De bu float k . 6.67LE-8 perah Pre, any key tu continue le progran or bateh file float MI: flost N2 flost Distance; flost Force; cout Distance rorce k (M1M2)(Distance Distance)); cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
