'''
Created on Jul 5, 2012
@author: Alex Marich
'''
def main():
#Using a float input in order to get the length of the road trip that takes into account decimals.
length = float(input("Enter the length of your road trip in miles: "));
#Using float input in order to get the average speed during the trip.
speed = float(input("Enter your average driving speed during the road trip in miles per hour: "));
#Using a float input in order to get the rest time in minutes.
rest = float(input("Enter the number of rest minutes during your road trip: "));
'''
Calculation for the actualMPH in order to satisfy the units of measure in miles per hour
we kept the length of the trip in the numerator and in the denominator found the original
amount of time(length/speed) added the amount of rest time(rest/60) - the division is to
take into account that the units need to remain constant, so we convert minutes to hours -
and stored it into a variable called actualMPH
'''
actualMPH = length/((length/speed)+(rest/60));
print("The actual average speed of your road trip was", actualMPH, "MPH");
main()