The height and speed of a projectile (such as a thrown ball) launched with a speed of
Question:
The height and speed of a projectile (such as a thrown ball) launched with a speed of υ0 at an angle A to the horizontal are given by
where g is the acceleration due to gravity. The projectile will strike the ground when h(t) = 0, which gives the time to hit thit = 2(υ0/g)sinA.
Use the switch structure to write a MATLAB program to compute the maximum height reached by the projectile, the total horizontal distance traveled, or the time to hit. The program should accept as input the user’s choice of which quantity to compute and the values of υ0, A, and g. Test the program for the case where υ0 = m/s, A = 30°, and g = 9.81 m/s2.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: