SOLVE USING MATLAB AND POST PUBLISHED SOLUTION A cannon is fired on level ground
ID: 3842574 • Letter: S
Question
SOLVE USING MATLAB AND POST PUBLISHED SOLUTION
A cannon is fired on level ground. Assume the user inputs an initial velocity (v0) of 100 m/s and an initial elevation angle of theta = 25 degrees. Using a while loop, calculate the x and y position of the cannon ball in time steps of 0.1 seconds until the cannon ball hits the ground. Assume the initial position is (x,y) = (0,0). The vertical acceleration due to gravity is -9.8 m/s2. Display the time, x-position and y-position in a nice table format with three columns. (Your output should look similar to the table from the previous cannon problem.)
Explanation / Answer
Initial velocity V0 = 100 m/s
Initial elevation angle of theta= 25 degrees
We implement a program in matlab using a while loop.....
below is the code.....
%another code for projectile calculation:
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.