Example: vending machine (state diagram)
Suitable abstract representation
tabulate typical input sequences
3 nickels
nickel, dime
dime, nickel
two dimes
Draw state diagram
inputs: N, D, reset
output: open
Previous slide
Next slide
Back to first slide
View graphic version