Instructions: You should submit your answer to this question as a Python code
with .py extension to the corresponding question in Google Classroom.
Attention: Make sure to write your name, surname, and student ID number.
Question:
(Physics: find runway length) Given an airplane's acceleration a and take-of
speed v, you can compute the minimum runway length needed for an airplane te
take off using the following formula:
length
2a
Write a program that prompts the user to enter v in meters/second (m/s) and th
acceleration a in meters/second squared (m/s), and displays the minimum runway
length. Here is a sample run:
Enter speed and acceleration: 60, 3.5 Enter
The minimum runway length for this airplane is 514.286 meters
a, b = map(int, input("Enter speed and acceleration:").split())
m = 0.5 * b * (a / b) ** 2
print("The minimum runaway length for this airplane is", m, meters)
Comments
Leave a comment