Problem

The height and speed of a projectile (such as a thrown ball) launched with a speed of 0 at...

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) sin A.

Use the switch structure to write a MATLAB program to compute either 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 = 40 m/s, A = 30 °, and g = 9.81 m/s2.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4