Construct a finite state machine that models this sanitizer booth.

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
6. Given a unidirectional controller for a sanitizer booth. It has 2 doors, a button for
entrance and a pressure sensor to spray the sanitizer. Assume each operation takes one
clock cycle.
i. The booth should do nothing until it receives its inputs.
ii. If a person presses the button, the entrance door 1, D1 should open to admit
the person and then close again.
iii.If a person is detected in the booth, the spray will go on. Otherwise, the booth
should do nothing.
iv. Once the sanitizing is finished, the second door, D2 should be opened.
v. Once the person has left, the door D2 should close again.
Construct a finite state machine that models this sanitizer booth.
Transcribed Image Text:6. Given a unidirectional controller for a sanitizer booth. It has 2 doors, a button for entrance and a pressure sensor to spray the sanitizer. Assume each operation takes one clock cycle. i. The booth should do nothing until it receives its inputs. ii. If a person presses the button, the entrance door 1, D1 should open to admit the person and then close again. iii.If a person is detected in the booth, the spray will go on. Otherwise, the booth should do nothing. iv. Once the sanitizing is finished, the second door, D2 should be opened. v. Once the person has left, the door D2 should close again. Construct a finite state machine that models this sanitizer booth.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
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