Question: Compute projectile trajectory, display with Excel In your engineering class you built a catapult t is designed so that the projectile has ann ta velocity

 Compute projectile trajectory, display with Excel In your engineering class you

Compute projectile trajectory, display with Excel In your engineering class you built a catapult t is designed so that the projectile has ann ta velocity o 20 meters per seco d and the traje ton ange se45 degrees rom horizontal. You want to test it but you don't want it to hit the Student Union 45 meters away. The equations for projectile motion are given here (t)t cos(6) h (t)-Up . t . sin ()--g . t2 where g = 9.81 m/s2 where h is the height, and x is the distance for given values of vo (initial velocity), t(time), and angle 1. Write a c++ program which uses a for loop to increment time from O to 5 seconds in increments of .05 seconds. For each value of t compute z (t) and h (t), and write t, z, h to an output file called "HW3 output.txt". Do not write to the file if the value of h is less than 0 (which means the projectile has hit the ground) 2. Import the output file into Excel and create a scatter plot of h vs x, which will show the position of the projectile. Label your plot axes with parameter name and units. Will the projectile hit the Student Union? Upload your.cpp and your.xlsx files to canvas

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!