Programs
Programs copied to clipboard
Update alarm.clock
When I first ran this, I used 24 hours format and it did not give me errors or any messages but kept running for a while until I interrupted the code. Therefore, I have added 'am/pm' into the input text and created if statements to reject 24 format answers. Secondly, I have added a snooze function. If the user says yes to snoozing, the alarm goes off again five seconds later. If the response is no, the alarm stops.