Ask Question
28 February, 08:46

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.

+2
Answers (1)
  1. 28 February, 09:24
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers