Question: Can I please get some help with problem 5? The code below is the code that needs to be modified. clc clear disp('ENGR15100 Prelab 9')

Can I please get some help with problem 5? The code below is the code that needs to be modified.

Can I please get some help with problem 5? The code below

clc clear disp('ENGR15100 Prelab 9') disp('Your name here') disp(' ') %Run script file for rocket calculations rocket2h2 %rocket2h2.m % clc b=input('Enter desired burn time '); disp(' ') h_des=input('Enter desired height '); disp(' ') dt=.1; m=10; f=2000; g=32.2; %calculate constants v_b=(f/m-g)*b; h_b=0.5*(f/m-g)*b^2; h_p=h_b+v_b^2/(2*g); t_p=b+v_b/g; figure(2) %Begin calculating flight h=0; k=0; while h>=0 t=k*dt; k=k+1; if th_des %do-able! h=0; k=0; t=0; while h Problem 3 Based on the rocket code of pre-lab 8, write a script file firstname_lastname_lab9_problem3.m to: Calculate the velocity v and altitude h of the rocket from the time of launch to ground impact. Use inputs and values as before. i) ii) Create a two-row, one-column subplot in figure 3, where subplot one shows altitude h versus time, while subplot two shows velocity v versus time. Problem 4 Based on the rocket code of pre-lab 8, write a script file firstname_lastname_lab9_problem4.m to: Determine the time at which h-3000 ft on the way up. Use a FOR loop technique, a time step dt 0.1s, and other values and inputs as before. Print an error message if h 3000 ft is not reached. Use fprintf to display the result. ii) Problem 5 Based on the rocket code of pre-lab 8, write a script file firstname_lastname_lab9_problem5.m to: i) Determine the time at which h -3000 ft on the way up. Use a WHILE loop technique and a time step of dt = 0.05 s, and other values and inputs as before. Print an error message if h = 3000 ft is not reached. i) Use fprintf to display the result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!