· When we have a single sequence of modes we can use state diagrams.
· State diagrams divide a system behavior into discrete states.
· The basic technique uses states and transitions to model the systems.
· The most essential part of creating state diagrams is identifying states. Some key questions to ask are,
· Consider a coffee vending machine,
· These states can be organized into a state diagram and transitions can be added.
· Draw a state diagram for the problem below.