Answer to Question #282550 in C++ for Bismark Akyen

Question #282550

Write a program in C++ for the following equations of motion.

v = u + at

s = ut + 1/2at2

s = 1/2t (v + u)

v2 = u2 + 2as


1
Expert's answer
2021-12-25T01:47:44-0500
#include <iostream>
using ​namespace std;
int main()
{
	cout << "Enter u,t,a:\n";
	cout << "u=";
	double v, t, a;
	cin >> v;
	cout << "t=";
	cin >> t;
	cout << "a=";
	cin >> a;
	double S = v * t + (a * t * t)/2.0;
	cout << "S=" << S << endl;
	return 0;

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