Please give me the answer
ThomasWeaver

Instructions from your teacher:

Lab Description : Given a distance traveled (miles) and elapsed time (hours and minutes), calculate the speed in miles per hour.

distance = rate * time minutes / 60 = hours ( 360 / 60 == 6 hours )

Sample Output :
Enter the distance :: 45
Enter the hours :: 0
Enter the minutes :: 32

45 miles in 0 hour and 32 minutes = 84 MPH.

Enter the distance :: 96
Enter the hours :: 1
Enter the minutes :: 43

96 miles in 1 hour and 43 minutes = 56 MPH.

Enter the distance :: 100
Enter the hours :: 2
Enter the minutes :: 25

100 miles in 2 hour and 25 minutes = 41 MPH.

You are viewing a single comment. View All
ChandlerMorell

You can do it! From just reading it, I know a solution!