Thank you will introduce the use of Write a program that cal

Thank you!
will introduce the use of Write a program that calculates velocity, v, and distance, x, given time, r.and time acceleration due to gravity, a. The program will print out r. x.and v for each step- time and size (in seconds) for the caleulations, and print out the table of results. An example nin Enter the time in seconds step-size in seconds 0,01 Enter v: 0.0000 m/s x1 0.0000 m 0.0000 see v: 0.0981 m/s 0.0005 m 0.0100 see v: 0.1961 m/s 0,0020 t: 0.0200 sec 0.2942 m/s 0.0044 t: 0.0300 sec 0.3922 m/s 0.0078 m 0.4903 m/s x: 0.0123 m 0.0500 see v 0.5884 m/s x: 0.0177 m 0.0600 see v: 0.6864 m/s x: 0.0240 m v: 0.7845 m/s x: 0.0314 m 0.0800 see oss25 m/s x: 0.0397 m 0.0900 sec v: 0.9806 m/s x: 0.0490 m 0.1000 see The needed equations and constant are: v-ar ar\' a accel, due to gravity 9.806m/sec round ofmune output to four decimal places (using setprecision0) use the ceilo function to generale the number oftime-steps so that the number of steps to take is rounded up for steps with fractional values always start from t (.x 0 initial conditions separate your columns with tabs (ie. lt format escape sequence) the accel, to gravity as a const double, above main

Solution

This is the code as per your requirement.Hope,it helped you.Any further requirement ;please feel free to ask us.We will love to help you

Thank you! will introduce the use of Write a program that calculates velocity, v, and distance, x, given time, r.and time acceleration due to gravity, a. The pr

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site