Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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)); coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started