You are on page 1of 1

#include <iostream>

using namespace std;


int main ()
{
float a, v2, v1, t, T, V2, V1;
cout << "\nThe Initial Velocity : ";
cin >> v1;
cout << "\nThe Final Velocity
cin >> v2;

: ";

cout << "\nThe time taken(min) : ";


cin >> t;
a=(v2-v1)/(t/60);
cout << "\nThe acceleration

: "<<a<<endl;

cout <<"\nThe new Initial Velocity : ";


cin >> V1;
T=(0-V1)/a;
T=T*60;
cout << "\nThe time taken to come to Rest(min) : "<<T<<endl<<endl;
system ("pause");
return 0;
}

You might also like