Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedhelp 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 11th International Symposium Sstd 2009 Aalborg Denmark July 8 10 2009 Proceedings Lncs 5644

Authors: Nikos Mamoulis ,Thomas Seidl ,Kristian Torp ,Ira Assent

2009th Edition

3642029817, 978-3642029813

More Books

Students also viewed these Databases questions