Introduction to Programming using Python 1st Edition

Published by Pearson
ISBN 10: 0132747189
ISBN 13: 978-0-13274-718-9

Chapter 2 - Elementary Programming - Programming Exercises - Page 57: 2.10

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
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.