Question: Please answer in a MATLAB form Problem 2: In some cultures, people celebrate by shooting a bullet straight up into the air, which can be
Problem 2: In some cultures, people celebrate by shooting a bullet straight up into the air, which can be a dangerous practice. If the muzzle velocity of the projectile is 715 m/s, write a script to tell the user how high the bullet travels, when the bullet reaches max height, and when the bullet will return back to the ground (take cover!). First, create a time vector t from 0 to 200 s in increments of 0.1 s. Second, use the projectile motion equation y v_0"t-W*g* to calculate the project heights over this time interval (let g = 9.81 m/s). Third, plot the height of the projectile over time just to see what the trajectory looks like. Fourth, find the positive height values greater than 0 and plot the data so only the positive height values are included in the plot (the projectile can't go through the ground), and add a title and axis labels. Fifth, find the maximum height and corresponding time when the bullet reaches the maximum height, then print both values to the user (i.e. "The projectile will reach a max height of y(t) matt s'). Finally, find the time when the projectile will hit the ground and print this value to the user. Extra Credit Exercise 1: Extra Credit Exercise: Download the Matlab data file fibonacci.mat from Canvas and use the load function to load the data it into your Matlab workspace. This file contains the first 1000 terms of the Fibonacci sequence. Find the first term of the Fibbonacci sequence where the value of that term is greater than 1E100. Display the term and the number to the user, and verify that you found the correct number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
