Question: You have been asked to write a C + + program to determine how far a car has travelled ( distance ) after time t

You have been asked to write a C++ program to determine how far a car has travelled (distance) after time t seconds, assuming that the car is initially traveling at a speed V0 and the driver applies the brake to decelerate at a uniform rate of a. Using the following formula:
(10 Pt.)
distance d=V0**t-0.5**a**t2
Speed V=V0-a**t
For this programming program
(a) How many inputs does this problem have? List them:
(b) How many outputs are required? List them:
(c) For the case where V0=126kmh and a=2.5ms2; How far will the car travel during the first one second, and during the first two seconds?
(d) How far (m) and how long (s) will the car travel before coming to a stop? [Hint: Remember units conversion.]
 You have been asked to write a C++ program to determine

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!