Saltar al contenido

Lesson 35: Security alarm

English

Logic that protects a shop

  • A security alarm has several sensors: light, motion and sound.
  • It must not sound in the day when customers walk around. At night any motion or sound is an intruder.
  • The rule is a logic expression: the alarm sounds when it is dark AND (there is motion OR a sound).

Words for this lesson

Word Meaning
intruder a person who comes in without permission
logic expression a rule made of AND, OR and NOT
bool a variable that is true or false
truth table every input pattern and the output for each one

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP