Question: Write a program that calculates how long it will take you to walk x amount of miles. Assume your walking speed is 3.1 miles/hour. The

Write a program that calculates how long it will take you to walk x amount of miles. Assume your walking speed is 3.1 miles/hour. The program should prompt the user to enter the amount of miles to walk and should print out the time it would take in minutes. Both of those values should be float. The program should continue to prompt the user to enter a new amount of miles until the user enters 0. When the user enters the program should quit. You should write and use the function with the prototype given below. You should also use a macro for your walking speed. Name this macro "SPEED". float Estimated_Time_of_Arrival(float miles); //Given: given the amount of miles needed to travel as a float value //Return: Returns the amount of minutes it would take to walk given miles as a float value Write and use this function in your main program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
