#In spring 2015, Widener Programming Team traveled from #Chester, PA to Worcester, MA, to compete in the regional #programming contest. The team traveled on THREE different #types of roads, RURAL, URBAN, and HIGHWAY, with different #speed limits. Write a program that asks user to enter the #number of hours team traveled on each type of roads and #the travel speed for each type. The program calculates the #total distance the team traveled and the average speed. #Use the following formulas: DISTANCE = SPEED*TIME, SPEED = #DISTANCE/TIME #Use the following example to test your program: team #traveled 2.5 hours with speed 65 MPH (miles per hour), 1.5 #hours with speed 55 MPH and 1.5 hours with speed 35 MPH. #The total distance is: #2.5*65+1.5*55+1.5*35= 297.5 miles. #The average speed is: 297.5/5.5 = 54.09 MPH #input: 6 floating point numbers #Part I rural_time=float(input("enter time traveled on rural ")) urban_time=float(input("enter time traveled on urban ")) highway_time= float(input("enter time traveled on highway ")) rural_speed=float(input("enter speed limit on rural ")) urban_speed=float(input("enter speed limit on urban ")) highway_speed=float(input("enter speed limit on highway ")) #Part II distance=rural_time*rural_speed+urban_time*urban_speed+highway_time*highway_speed speed=distance/(rural_time+urban_time+highway_time) #Part III print("distance=", distance) print("speed=", speed)