Question: LOOP Project; Distance = speed * times. Write a program that asks the user for write the speed of a vehicle (in miles per hour)
LOOP Project; Distance = speed * times. Write a program that asks the user for write the speed of a vehicle (in miles per hour) and how many hours it has travelling. The program should then use a loop to display the distance the vehicle has travelled for each hour of that time period in miles and in kilometers. (1 mile = 14.6 km) in put validation the program should not accept negative numbers. output format the program should run as long as the user want show scenarios when the user enters in valid numbers for the speed or the distance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
