So I'm supposed to make an alarm system using at least two classes. The
instructions I received are as follows "Make program which demonstrates Alarm
using at least two classes: Sensor (read) inside the loop and Siren (print).
Sensor read Alarm y(es)/n(o)? and Siren prints "Alarm!" if Alarm situation is
true otherwise it prints "ok"."
I have little to no clues on how to do it even though I do understand what
classes are. Can someone help? hints of any kind are welcomed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I'm supposed to make an alarm system using at least two classes. The
instructions I received are as follows "Make program which demonstrates Alarm
using at least two classes: Sensor (read) inside the loop and Siren (print).
Sensor read Alarm y(es)/n(o)? and Siren prints "Alarm!" if Alarm situation is
true otherwise it prints "ok"."
I have little to no clues on how to do it even though I do understand what
classes are. Can someone help? hints of any kind are welcomed.