Answer to Question #90502 in C++ for Ayinde kawthar

Question #90502
Develop an algorithms to compute for the distance d in km and acceleration a in metre per second square of an object B which move through an arc with an initial and final velocities u and v in metre per second at a time t in second
1
Expert's answer
2019-06-04T15:24:07-0400
#include <iostream>

using namespace std;

int main()
{
   

  double u, v, d, t,a;
  cout<<"Enter the initial velocity u in metre per second: "<<endl;
  cin>>u;
  cout<<"\n";
  cout<<"Your initial velocity in km per hour  "<<u*3.6<<"\n";
   cout<<"Enter the final velocity v in metre per second: "<<endl;
  cin>>v;
  cout<<"\n";
    cout<<"Your final velocity in km per hour  "<<v*3.6<<"\n";
   cout<<"Enter time t: "<<endl;
  cin>>t;
  cout<<"\n";
    cout<<"Your time in hour  "<<t/3600<<"\n";
  d=(u*3.6+v*3.6)*t/3600/2;
  cout<<"Distance in km: "<<d<<""<<endl;
  a=(v-u)/t;
  cout<<"Acceleration in metre per second: "<<a<<endl;
	system("pause");
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS