Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lift for an aircraft can be computed using the following equation: L = 0.5pv2ACd where L is lift (N), p is air density (kg/m?), v
Lift for an aircraft can be computed using the following equation: L = 0.5pv2ACd where L is lift (N), p is air density (kg/m?), v is velocity (m/s), A is wing area (m) and Cd 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.5pv2ACd where L is lift (N), p is air density (kg/m?), v is velocity (m/s), A is wing area (m) and Cd 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started