State Diagram
A state Diagram is used to represent the condition of a given
system at any instance. It helps us to determine the system
behavior at different transitions.
- On the event of an order being received, we transit from our
initial state.
- The unprocessed order is then created.
- If the order is created and move towards next transition for
payment.
- If the order is confirmed and we have the items available we
transit to the fulfilled booking state.
- However if the booking is cancelled then the order is not
fulfilled.
- After the booking is confirmed, we transit to the final
state.
A flowchart is a diagramatic representation of an algorithm.
Flowchart for a program to add 2 numbers