Ask Question
1 May, 03:56

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.

+1
Answers (1)
  1. 1 May, 04:29
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers