

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Out: 1/ Due: 2/4 by 11:50 PM
Definition 1. Rectilinear motion is a continuous change of position of a body so that every particle of the body follows a straight-line path.
The variable quantities in a uniformly accelerated rectilinear motion are time, speed, distance covered and acceleration. Simple relations exist between these quantities. These relations are expressed in terms of equations called equations of motion. One such equation is
vf =
2 as + v^2 i (1)
where a is the acceleration, s is the distance covered, vi is the initial velocity, and vf is the final velocity.
Write a C++ program that prompts the user for the value of the accel- eration in f t s 2 , initial velocity in f t s , and the distance covered in f t. Your program should then compute and display the final velocity in f t s. Your pro- gram should also convert the final velocity to m s and display this quantity.
1 m s is approximately equals to 3.281 f t s. All numeric values in the output should be displayed with five decimal places and the input and output MUST be formatted as below. Name your source file linearmotion.cpp.
Your program interactions should appear as shown in the sample run. Be sure to format the output of your program exactly as shown below.
Sample Run:
Enter the acceleration of the particle in ft/s^2>xxx.xx Enter the distance covered by the particle in ft>x.xx Enter the initial velocity of the particle in ft/s>xxx.xx
A particle with a constant acceleration of xxx.xxxxx ft/s^2 starting with an initial velocity of xxx.xxxxx ft/s that travels a distance of xxxxx.xxxxx ft has a final velocity of xxx.xxxx ft/s which is equivalent to xxx.xxxx m/s.
As will be the case with every program you submit for grading in this course, your source file must have the following header comments:
/*