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
timmy_i_chen

I don't think anyone here will do the assignment for you... that's not really what this community is for. We can help answer specific questions or help you when you're stuck but your homework is ultimately your responsibility.