Question: Distance Traveled (distance.php) Distance = Speed * Time Write a program that asks for the speed of a vehicle (in mph) and the number of
Distance Traveled (distance.php)
Distance = Speed * Time
Write a program that asks for the speed of a vehicle (in mph) and the number of hours traveled. Using a loop display the distance a vehicle has traveled for each hour of a time period specified by the user.
(Example: 40 mph for 3 hours)
Hour: 1, 2, 3
Distance Traveled: 40, 80, 120
Validation Do not accept a negative number for speed and do not accept any value less then 1 for time traveled.
*MUST BE IN PHP IN ATOM*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
