Share
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?
ReportQuestion
Please briefly explain why you feel this question should be reported.
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?
Leave an answer