Week 22. Conditional behaviour
- ◇ Read and write IF–THEN–ELSE rules that depend on a sensor.
- ◇ Choose a sensible threshold and test readings at its edge.
- ◇ Combine conditions with AND, OR and NOT.
- 1IF this, THEN that, ELSE the otherOne sentence beginning with 'if' stops a robot vacuum falling down the stairs. What is that sentence?25 min
- 2Choosing a good thresholdA sorting machine calls a part 'large' if it's over 65 mm. A part measures 64.9 mm. Is it large?25 min
- 3AND, OR, NOT: combining conditionsA lift should move only if the doors are closed AND someone pressed a button. What happens if an engineer types OR by mistake?30 min