Question: MATLAB URGENT URGENT HELP NEEDED, PLEASE SOLVE AND GIVE CLEAN CODE WITH STEPS AND EXPLAINATION Lift for an aircraft can be computed using the following
MATLAB URGENT URGENT HELP NEEDED, PLEASE SOLVE AND GIVE CLEAN CODE WITH STEPS AND EXPLAINATION

Lift for an aircraft can be computed using the following equation: L = 0.5pv2AC where L is lift (N), p is air density (kg/m), v is velocity (m/s), A is wing area (m) and Ca is the drag coefficient (unitless). Write a MATLAB script file that first prompts the user for the units of velocity (m/s or mph) and the aircraft's speed, v. The units should be entered as a string. The script should check for valid inputs (velocity positive with units of m's or mph) and in the case of invalid units, continue to prompt until inputs are valid. Once the inputs are valid the lift, L, should be calculated assuming that p= 1.23 kg/m?, A = 185.3 m, and Ca=0.94. The script should output the lift using two places behind the decimal point and include units. Assume the take-off weight of the aircraft is 525000 N. If the lift is greater than the take-off weight, output a message indicating that the velocity is sufficient for take-off. If the lift is less than the take-off weight, output a message indicating that the velocity is not sufficient for take-off. Otherwise, output a message indicating that lift is equal to take-off weight. Lift for an aircraft can be computed using the following equation: L = 0.5pv2AC where L is lift (N), p is air density (kg/m), v is velocity (m/s), A is wing area (m) and Ca is the drag coefficient (unitless). Write a MATLAB script file that first prompts the user for the units of velocity (m/s or mph) and the aircraft's speed, v. The units should be entered as a string. The script should check for valid inputs (velocity positive with units of m's or mph) and in the case of invalid units, continue to prompt until inputs are valid. Once the inputs are valid the lift, L, should be calculated assuming that p= 1.23 kg/m?, A = 185.3 m, and Ca=0.94. The script should output the lift using two places behind the decimal point and include units. Assume the take-off weight of the aircraft is 525000 N. If the lift is greater than the take-off weight, output a message indicating that the velocity is sufficient for take-off. If the lift is less than the take-off weight, output a message indicating that the velocity is not sufficient for take-off. Otherwise, output a message indicating that lift is equal to take-off weight
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
