Answer
Step 1 of 3:
Program Plan:
Create a python file with name 2_10PE.PY. In the file,
- Get input from user. It is the take off speed and acceleration of airplane.
- Calculate the minimum length of runway required for successful flight of an airplane with given speed and acceleration. The formula is given in question itself.
- Display the minimum runway length for the airplane.
Step 2 of 3:
Program:
#prompt the user for speed and acceleration of airplane
speed, acc = eval(input("Enter speed and acceleration: "))
#Calculate the length of runway required
length $=$ speed $^{*}$ speed $/\left(2^{*}\right.$ acc $)$
#Display the minimum runway length for the airplane
print("The minimum runway length for this airplane is ",
round(length,3), " meters")
Step 3 of 3:
Sample Output:
Enter speed and acceleration: $60,3.5$
The minimum runway length for this airplane is $514.286$ meters
Work Step by Step
Step 1 of 3:
Program Plan:
Create a python file with name 2_10PE.PY. In the file,
- Get input from user. It is the take off speed and acceleration of airplane.
- Calculate the minimum length of runway required for successful flight of an airplane with given speed and acceleration. The formula is given in question itself.
- Display the minimum runway length for the airplane.
Step 2 of 3:
Program:
#prompt the user for speed and acceleration of airplane
speed, acc = eval(input("Enter speed and acceleration: "))
#Calculate the length of runway required
length $=$ speed $^{*}$ speed $/\left(2^{*}\right.$ acc $)$
#Display the minimum runway length for the airplane
print("The minimum runway length for this airplane is ",
round(length,3), " meters")
Step 3 of 3:
Sample Output:
Enter speed and acceleration: $60,3.5$
The minimum runway length for this airplane is $514.286$ meters