Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+4 votes
asked in old_CSC201 by (1 point)

1 Answer

+2 votes

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 (1 point)
...