Library loan flowchart
Borrowing a book: member check, overdue check, loan limit check. Pairs well with the library use case and ER examples.
The diagram
Reading it step by step
- 1. Start at 'Start'.
- 2. 'Scan card and book' is an input or output. Next: 'Valid member?'.
- 3. Decide 'Valid member?': if 'no', go to 'Suggest registration'; if 'yes', go to 'Any overdue book?'.
- 4. 'Suggest registration' is a processing step. Next: 'End'.
- 5. End at 'End'.
- 6. Decide 'Any overdue book?': if 'yes', go to 'Ask to return first'; if 'no', go to 'Fewer than 5 loans?'.
- 7. 'Ask to return first' is a processing step. Next: 'End'.
- 8. Decide 'Fewer than 5 loans?': if 'no', go to 'Show loan limit'; if 'yes', go to 'Save loan record'.
- 9. 'Show loan limit' is a processing step. Next: 'End'.
- 10. 'Save loan record' reads or writes the data store. Next: 'Print due date'.
- 11. 'Print due date' is an input or output. Next: 'End'.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| Start | Terminator | → Scan card and book |
| Scan card and book | Input/output | → Valid member? · ← Start |
| Valid member? | Decision | → Suggest registration(no), Any overdue book?(yes) · ← Scan card and book |
| Suggest registration | Process | → End · ← Valid member? |
| End | Terminator | ← Suggest registration, Ask to return first, Show loan limit, Print due date |
| Any overdue book? | Decision | → Ask to return first(yes), Fewer than 5 loans?(no) · ← Valid member? |
| Ask to return first | Process | → End · ← Any overdue book? |
| Fewer than 5 loans? | Decision | → Show loan limit(no), Save loan record(yes) · ← Any overdue book? |
| Show loan limit | Process | → End · ← Fewer than 5 loans? |
| Save loan record | Stored data | → Print due date · ← Fewer than 5 loans? |
| Print due date | Input/output | → End · ← Save loan record |
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. |
| Stored data | Reads or writes a database or file; a cylinder. |
| 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.
# Library loan flowchart
flowchart TD
s(["Start"])
a[/"Scan card and book"/]
b{"Valid member?"}
c["Suggest registration"]
z(["End"])
d{"Any overdue book?"}
e["Ask to return first"]
f{"Fewer than 5 loans?"}
g["Show loan limit"]
h[("Save loan record")]
i[/"Print due date"/]
s --> a
a --> b
b -->|no| c
c --> z
b -->|yes| d
d -->|yes| e
e --> z
d -->|no| f
f -->|no| g
g --> z
f -->|yes| h
h --> i
i --> z