Physics: Finding Runway Length

less than 1 minute read

The code has been modified slightly and now uploaded to the site.

Question

<— Return Home

212.cpp

#include <iostream>
#include <math.h>
using namespace std;

int main(){
    double speed;
    double acceleration;
    double length;

    std::cout << "Enter speed and acceleration: \n";
    std::cin >> speed;
    std::cin >> acceleration;

    length = (pow(speed, 2)) / (2 * acceleration);

    std::cout << "The minimum runway length for this airplane is " << length;
}

<— Return Home