Task3

Alarm ringing !
  1. Suppose by default there is a prompt saying “ Alarm is ringing”. Press ‘S’ to snooze and ‘D’ to dismiss
  2. If user selects ‘D’, program will be dismissed with a prompt “Good Morning”
  3. 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)
  4. upon entering wrong input program will prompt “wrong input” and program ends.