Ask Question
19 May, 22:48

iven an airplane's acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v^2 / 2 * a 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 2), then, 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

+5
Answers (1)
  1. 19 May, 23:01
    0
    v, a = [float (x) for x in input ("Enter speed and acceleration: "). split () ]

    length = (v * v) / (2 * a)

    print ("The minimum runway length for this airplane is %.3f" % length)

    Explanation:

    *The code is in Python

    Ask the user to enter the values for v and a, to get multiple inputs in one line use list comprehension and the split function

    Calculate the length using given formula, v^2 / 2 * a

    Print the length with 3 decimal places
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “iven an airplane's acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using ...” in 📗 Engineering if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers