Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+1 vote
asked in CSC201 by (312 points)

1 Answer

+1 vote

It works exactly the same for military time.

actual time 1840
alarm time 2210

1840 gives 18 * 60 + 40 = 1120 minutes since midnight
2210 gives 22 * 60 + 10 = 1330 minutes since midnight

1330 - 1120 = 210 minutes still to sleep

answered by (4.2k points)
...