Name: ____________________________________________________ Alpha: ________________________

Describe help received: _____________________________________________________________________

  1. [100pts] Write a program sleeping that reads a 4-digit time (HHMM, 24-hour time), and prints out "I'm Awake!" if the time is between 0600 and 2300 (inclusive), and "Go away, I'm asleep!" otherwise. Example of running your program:
    $ ./sleeping
    Time: 0330
    Go away, I'm asleep!
    $ ./sleeping
    Time: 1650
    I'm Awake!
    $ ./sleeping
    Time: 2301
    Go away, I'm asleep!
    
Turn in a printout of this cover sheet, a printout of the source-code of your program, and a printout of a screen capture showing your program running on all three of the test inputs shown above.