A security light system has a switch and a motion sensor attached. It can be either armed or unarmed. If the switch is in the off position, the light is off and the system is unarmed. When the switch is turned on, the light stays off but the system is armed. If the system is armed and the motion sensor detects movement, the light comes on. If no movement is detected for 5 seconds, the light goes off. Draw a UML state-chart diagram to describe the states of the security light system.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 15E
icon
Related questions
Question
100%

(a) A security light system has a switch and a motion sensor attached. It can be either armed or unarmed. If the switch is in the off position, the light is off and the system is unarmed. When the switch is turned on, the light stays off but the system is armed. If the system is armed and the motion sensor detects movement, the light comes on. If no movement is detected for 5 seconds, the light goes off. Draw a UML state-chart diagram to describe the states of the security light system.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr