Question: Please help with the fallowing C++ program. The distance a vehicle travels can be calculated as follows: distance = speed * time For example, if
Please help with the fallowing C++ program.
The distance a vehicle travels can be calculated as follows:
distance = speed * time
For example, if a train travels 40 miles per hour for 3 hours, the distance traveled in 120 miles.
Write a program that asks the user for the speed of the vehicle (in miles per hour) and how many hours it has traveled. The program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. Here is an example of the output:
Expected Output:

Input Validation: Do not accept a negative number for speed.
Input Validation: Do not accept any value less than 1 for time traveled.
In this expected output, just to keep the simplicity of the program I entered only 2 times the wrong input. Your program should be able to handle an unlimited number of times wrong input (Hint: use while loop)
You must match the layout of the output.
For space use tab command (\t), do not use space bar to space them out.
You need to match what I have in the expected output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
