Ask Question

Write a C+ + program that prompt the user to enter v in meter/second (m/s) and the acceleration in a in meters/second squared (m/s^2), and displays the minimum runway length.

+3
Answers (1)
  1. 10 October, 22:44
    0
    following are the code in c++

    #include / / header file

    #include

    using namespace std;

    int main () / / main function

    {

    double v, a, len; / / declaring variable

    cout<<" Enter v: ";

    cin>>v;

    cout<<" Enter a:";

    cin>>a;

    len=pow (v, 2) / (2*a); / / to calculate the minimum runway length.

    cout<<" The minimum runway length is : ";

    cout<
    return 0;

    }

    Explanation:

    In this program we taking two user input in the variable v and a respectively. After that we using the formula len=v*v/2*a to calculate the minimum runway length and finally print len which display the minimum runway length ...

    output

    Enter v: 60

    Enter a: 3.5

    The minimum runway length is : 514.286
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a C+ + program that prompt the user to enter v in meter/second (m/s) and the acceleration in a in meters/second squared (m/s^2), and ...” in 📗 Computers & Technology 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