Programming Project 10.13.2: ••. Add an alarm feature to the Clock class of Programming Project 10.13.1. When set_alarm(hours, minutes) is called, the clock stores the alarm. When you call get_time, and the alarm time has been reached or exceeded, return the time followed by the string “Alarm” (or, if you prefer, the string “\u23F0”) and clear the alarm. What do you need to do to make the set_alarm function work for WorldClock objects?

Report
Question

Please briefly explain why you feel this question should be reported.

Report
Cancel
Programming Project 10.13.2: ••.

Add an alarm feature to the Clock class of Programming Project 10.13.1. When set_alarm(hours, minutes) is called, the clock stores the alarm. When you call get_time, and the alarm time has been reached or exceeded, return the time followed by the string "Alarm" (or, if you prefer, the string "u23F0") and clear the alarm. What do you need to do to make the set_alarm function work for WorldClock objects?

MathJax Example

Leave an answer

Browse

By answering, you agree to the Terms of Service and Privacy Policy.