Naming the Variables
Inputs:
Ignition: {off, on, start}
Keypad: {0,…,9}
Outputs:
Red Light: {on, off}
Green Light: {on, off}
StartCar: {yes, no}
What else do we need?
Internal “state” (memory, store, “what’s happened up until now?”, “where are we?”
off
on
start
ignition
keypad
0
Previous slide
Next slide
Back to first slide
View graphic version