Answer:
The program in python is as follows:
def miles_to_laps(user_miles):
return (user_miles/0.25)
mile = float(input("Number of Miles: "))
print("Number of laps: ",end="")
print('{:.2f}'.format(miles_to_laps(mile)))
Step-by-step explanation:
The first line defines the function miles_to_lap
def miles_to_laps(user_miles):
This line returns the equivalent number of laps
return (user_miles/0.25)
The main method starts here
This line prompts user for input
mile = float(input("Number of Miles: "))
This line prints the string "Number of laps", without the quotes
print("Number of laps: ",end="")
This prints the equivalent number of laps to two decimal places
print('{:.2f}'.format(miles_to_laps(mile)))