Question: Submit your script for problem 3 3. (5 points) Examine the drawing below 0 The equations that govern a projectile fired from a cannon (in

Submit your script for problem 3 3. (5 points) Examine the drawing below 0 The equations that govern a projectile fired from a cannon (in a vacuum) are: h(t) = Vot sin . 0.5 g t2 and V(t)-./2igt sin(9) + g2t2 Where Vo = initial velocity, = angle of elevation (in degrees), g the acceleration due to gravity, and t-time in seconds). The projectile will hit the ground h(t) 0 with the time to hit calculated as tm-2 )sine. Create a program in MATLAB that will ask a user for both the initial velocity, Vo, and the elevation, . After inputting the required data the program must determine the following using relational and logical operators: The times when the height is no less than 15 meters. The times when the height is no less than 15 meters and the velocity is simultaneously no greater than 36 m/s. The times when the height is not less than 5 meters or the velocity greater than 35 m/s. a. b. c. Use an initial velocity (Vo) = 40 ms, = 30, and g = 9.81 m/s2 as your test. Answers: a. 1.0601st s 3.0989 seconds b. 1.1009 sts3.0581 seconds c. 0.0408 st andt24.1182 seconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
