[ SM3117 ] - [ Class 06 ] - Counter

Class 06 - Director Workshop - Door counter exercise

 

1
Write a Director program to count the number of persons inside a room.
2

 

 

3

The room has one single door. You can assume

  • The room is empty in the beginning.
  • Only one person can enter or exit the room at the same time through the door.
  • No one will stand at the door.
  • The person can stay inside the room as long as they like.
  • State other reasonable assumptions.

 

4

Use one or two infra-red sensors with the EZIO board to design a simple movie to show the number of visitors inside the room.