ATM withdrawal flowchart
Withdrawing cash at an ATM: PIN check, then balance check, with the card kept after three wrong PINs. Good practice for chained decisions.
The diagram
Reading it step by step
- 1. Start at 'Start'.
- 2. 'Insert card, enter PIN' is an input or output. Next: 'PIN correct?'.
- 3. Decide 'PIN correct?': if 'no', go to 'Third wrong try?'; if 'yes', go to 'Enter amount'.
- 4. Decide 'Third wrong try?': if 'no', go to 'Insert card, enter PIN'; if 'yes', go to 'Keep card, show notice'.
- 5. 'Keep card, show notice' is a processing step. Next: 'End'.
- 6. End at 'End'.
- 7. 'Enter amount' is an input or output. Next: 'Enough balance?'.
- 8. Decide 'Enough balance?': if 'no', go to 'Show insufficient funds'; if 'yes', go to 'Dispense cash and receipt'.
- 9. 'Show insufficient funds' is a processing step. Next: 'Enter amount'.
- 10. 'Dispense cash and receipt' is a processing step. Next: 'End'.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| Start | Terminator | → Insert card, enter PIN |
| Insert card, enter PIN | Input/output | → PIN correct? · ← Start, Third wrong try? |
| PIN correct? | Decision | → Third wrong try?(no), Enter amount(yes) · ← Insert card, enter PIN |
| Third wrong try? | Decision | → Insert card, enter PIN(no), Keep card, show notice(yes) · ← PIN correct? |
| Keep card, show notice | Process | → End · ← Third wrong try? |
| End | Terminator | ← Keep card, show notice, Dispense cash and receipt |
| Enter amount | Input/output | → Enough balance? · ← PIN correct?, Show insufficient funds |
| Enough balance? | Decision | → Show insufficient funds(no), Dispense cash and receipt(yes) · ← Enter amount |
| Show insufficient funds | Process | → Enter amount · ← Enough balance? |
| Dispense cash and receipt | Process | → End · ← Enough balance? |
Symbols used here
| Symbol | Meaning |
|---|---|
| Terminator | Where the flow starts or ends; a rounded rectangle. |
| Process | One action such as a calculation; a rectangle. |
| Decision | A question whose answer picks the next path; a diamond. |
| Input/output | Data comes in or goes out; a parallelogram. |
| Flow line | The order of steps, in the arrow direction. |
Diagram text
Paste this text into the editor to get the same picture, then change the names to fit your own work.
# ATM withdrawal flowchart
flowchart TD
s(["Start"])
a[/"Insert card, enter PIN"/]
b{"PIN correct?"}
c{"Third wrong try?"}
d["Keep card, show notice"]
z(["End"])
e[/"Enter amount"/]
f{"Enough balance?"}
g["Show insufficient funds"]
h["Dispense cash and receipt"]
s --> a
a --> b
b -->|no| c
c -->|no| a
c -->|yes| d
d --> z
b -->|yes| e
e --> f
f -->|no| g
g --> e
f -->|yes| h
h --> z