C++
K. Dzwonkiewicz
![]() |
This program will calculate
average velocity for a fine sports car traveling on the autobahn. Your output should look like this
|
Average Velocity
Calculation Car type: Mitsubishi
3000gt VR4 Starting milepost: 321 Elapsed time: 2 hr 15 min
36 sec End milepost: 458 Distanced traveled 137
miles in 2 hr 25 min 36 sec. Average velocity: 60.6195
mph |
Input information will be
Calculations will determine
Use a #define
to get the title
Format the velocity using
the setw() and setprecision()
Dont forget cout.setf(ios::fixed,
ios::floatfield);
cout.setf(ios::showpoint);
and iomanip.h
