Write a c program that calculates the position of a


Implement a program to find the position of a cannonball

Program: Write a C++ program that calculates the position of a cannonball that is fired straight up in the air.

Use short time intervals (.01 seconds) and display the position and velocity every second. Use the equation s(t)= -(1/2)gt^2+v_0t  where g= 9.81m/s^2.

Illustrate these values every second until the cannonball returns to earth.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program that calculates the position of a
Reference No:- TGS0952648

Expected delivery within 24 Hours