Task3
Alarm ringing !
- Suppose by default there is a prompt saying “ Alarm is ringing”. Press ‘S’ to snooze and ‘D’ to
dismiss
- If user selects ‘D’, program will be dismissed with a prompt “Good Morning”
- If user select ‘S’ , the program “ Alarm is ringing”. Press ‘S’ to snooze and ‘D’ to dismiss will
rerun and again the prompt will be (repeat from step I)
- upon entering wrong input program will prompt “wrong input” and program ends.