Question: we are using python 5. (25 points) The following describes a tiny part of the airplane design process - Choosing the engine size needed to

we are using python

we are using python 5. (25 points) The following describes a tiny

part of the airplane design process - Choosing the engine size needed

5. (25 points) The following describes a tiny part of the airplane design process - Choosing the engine size needed to meet a take-off distance requirement (STO) Sto is the distance an airplane will roll on the runway before it is able to lift off into the air. Calculating STo is performed using a sequence of five equations shown below. Those equations require seven parameters that control takeoff performance The engine thrust parameter is a major factor in determining take-off distance. The graph shows how take-off distance gets shorter as engine thrust is increased. eight Thrust-13000 weight = 56000 S-1000 stall = tho S C Lmax 24 D-0.0279 rho = 0.002377 gc-322 TO 12 Vstal Thrust Weight STo thrust) TO STO 10000 20000 30000 thrust Write a Python program that includes and calls the following three functions a) def STO(thrust): Thrust: the value of the engine thrust. Important, this is the only argument to be passed to this function. All of the other required air Local variables for those parameters may be defined and assigned values inside the STO function. Use the airplane parameter values given in the figure above plane parameters may be ass umed constant The function calculates and returns: the airplane take-off distance, calculated using the five equations given above. The first four of those equations calculate the value of three constants to be used in the fifth equation (VTO, A and B). That fifth equation requires the use of numerical integration. Use your Simpson function to perform the integration. This problem statement is continued on the next page b) def ThrustNeededForTakeoff(distance) distance: the required take-off distance. Important, this is the only argument to be passed to this function. All of the other required airplane parameters may be assumed constant. Local variables for those parameters may be defined and assigned values inside the ThrustNeededForTakeoff function. Use the airplane parameter values given in the figure on the previous page The function calculates and returns: the engine thrust needed to allow the airplane to take-off in the required distance. Hint: The ThrustNeededForTakeoff function behaves as the inverse of the STO function. Therefore it must use a root-finding method to find the value of thrust that causes: STO(thrust) - distance -0 function so solve for this value of thrust. Use your Secant c) def main0 main) has no arguments and no return value. main) does the following a) calls STO(13000) to calculate the take-off distance for an engine thrust of 13000 pounds Print the answer with one decimal place, using a nice text label. The nice text label should include the thrust value of 13000 pounds b) calls ThrustNeededForTakeoff(1500) to calculate the thrust needed to allow takeoff irn 1500 feet. Print the answer with two decimal places, using a nice text label. The nice text label should include the takeoff distance of 1500 feet. c) calls ThrustNeededForTakeoff(1000) to calculate the thrust needed to allow takeoff irn 1000 feet. Print the answer with two decimal places, using a nice text label. The nice text label should include the takeoff distance of 1000 feet. 5. (25 points) The following describes a tiny part of the airplane design process - Choosing the engine size needed to meet a take-off distance requirement (STO) Sto is the distance an airplane will roll on the runway before it is able to lift off into the air. Calculating STo is performed using a sequence of five equations shown below. Those equations require seven parameters that control takeoff performance The engine thrust parameter is a major factor in determining take-off distance. The graph shows how take-off distance gets shorter as engine thrust is increased. eight Thrust-13000 weight = 56000 S-1000 stall = tho S C Lmax 24 D-0.0279 rho = 0.002377 gc-322 TO 12 Vstal Thrust Weight STo thrust) TO STO 10000 20000 30000 thrust Write a Python program that includes and calls the following three functions a) def STO(thrust): Thrust: the value of the engine thrust. Important, this is the only argument to be passed to this function. All of the other required air Local variables for those parameters may be defined and assigned values inside the STO function. Use the airplane parameter values given in the figure above plane parameters may be ass umed constant The function calculates and returns: the airplane take-off distance, calculated using the five equations given above. The first four of those equations calculate the value of three constants to be used in the fifth equation (VTO, A and B). That fifth equation requires the use of numerical integration. Use your Simpson function to perform the integration. This problem statement is continued on the next page b) def ThrustNeededForTakeoff(distance) distance: the required take-off distance. Important, this is the only argument to be passed to this function. All of the other required airplane parameters may be assumed constant. Local variables for those parameters may be defined and assigned values inside the ThrustNeededForTakeoff function. Use the airplane parameter values given in the figure on the previous page The function calculates and returns: the engine thrust needed to allow the airplane to take-off in the required distance. Hint: The ThrustNeededForTakeoff function behaves as the inverse of the STO function. Therefore it must use a root-finding method to find the value of thrust that causes: STO(thrust) - distance -0 function so solve for this value of thrust. Use your Secant c) def main0 main) has no arguments and no return value. main) does the following a) calls STO(13000) to calculate the take-off distance for an engine thrust of 13000 pounds Print the answer with one decimal place, using a nice text label. The nice text label should include the thrust value of 13000 pounds b) calls ThrustNeededForTakeoff(1500) to calculate the thrust needed to allow takeoff irn 1500 feet. Print the answer with two decimal places, using a nice text label. The nice text label should include the takeoff distance of 1500 feet. c) calls ThrustNeededForTakeoff(1000) to calculate the thrust needed to allow takeoff irn 1000 feet. Print the answer with two decimal places, using a nice text label. The nice text label should include the takeoff distance of 1000 feet

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!