Solved by verified expert:2. Distance Traveled
The distance a vehicle travels can be calculated as fallout:
Distance = Speed * Time
For example, if a train travels 40 milcs-per-hour for three hours, the distance [raveled is
120 miles. Write a program that asks far the speed of a vehicle (in miles-per-hour) and the
number of hours it has traveled. It should use a loop to display the distance a vehicle has
traveled for each hour of a time period specified by the user. Tor example, if a vehicle is
traveling at 40 mph far a three-hour time period, it should display a report similar to the
one chat follows:
Hour Distance Traveled
1
2
3
40
BO
120
Input Validation: Do nut accept a negative numher for speed and do not accept any value
lea than I for time traveled,