(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 to
take off using the following formula:
length
2a
Write a program that prompts the user to enter v in meters/second (m/s) and the
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 LEnter
The minimum runway length for this airplane is 514.286 meters
x, y = map(float, input("Enter speed and acceleration:").split())
m = 1/2 * y * (x / y) ** 2 #formula for finding runaway length
print("The minimum runaway length for this airplane is", m, "meters")
Comments
Leave a comment