Ask coding questions

← Back to all posts
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.

Voters
EthanFrancisco
ThomasWeaver
ElanRosenberg
Comments
hotnewtop
ChandlerMorell

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

teymour

You just need to use the equation given.

Try this:

https://snakify.org/en/lessons/integer_float_numbers/

ash15khng

Also, PLEASE READ THE PINNED THREAD.

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.

ThomasWeaver

if anyone can please do this assignment for me that would be awesome. I'm really tired and i want to sleep right now. I am willing to pay in hugs and kisses

ash15khng

@ThomasWeaver That's just creepy...