Name: _____________________________________________ Alpha: ___________________
Describe help received: ________________________________________________________
- Due before class on Monday, January 23
- This homework contains code to be submitted electronically.
Put your code in a folder called
hw05and submit using the
- This is an electronic homework and you do not need to print out anything to turn in during class.
- Required reading: Sections 5 (Expressions and Statements) and 6 (Branching) from the Unit 2 notes.
Write a program in a file called
sleeping.cthat reads a 4-digit time (HHMM, 24-hour time), and prints out "Awake" if the time is between 0600 and 2300 (inclusive), and "Asleep" otherwise.
Example of running your program: