Grade from score flowchart
Turns a score into a grade: 90+ A, 80+ B, 70+ C, else F. The basic shape of a multi-way branch made from chained decisions.
The diagram
Reading it step by step
- 1. Start at 'Start'.
- 2. 'Read score' is an input or output. Next: '90 or more?'.
- 3. Decide '90 or more?': if 'yes', go to 'Grade A'; if 'no', go to '80 or more?'.
- 4. 'Grade A' is a processing step. Next: 'Print grade'.
- 5. 'Print grade' is an input or output. Next: 'End'.
- 6. End at 'End'.
- 7. Decide '80 or more?': if 'yes', go to 'Grade B'; if 'no', go to '70 or more?'.
- 8. 'Grade B' is a processing step. Next: 'Print grade'.
- 9. Decide '70 or more?': if 'yes', go to 'Grade C'; if 'no', go to 'Grade F'.
- 10. 'Grade C' is a processing step. Next: 'Print grade'.
- 11. 'Grade F' is a processing step. Next: 'Print grade'.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| Start | Terminator | → Read score |
| Read score | Input/output | → 90 or more? · ← Start |
| 90 or more? | Decision | → Grade A(yes), 80 or more?(no) · ← Read score |
| Grade A | Process | → Print grade · ← 90 or more? |
| 80 or more? | Decision | → Grade B(yes), 70 or more?(no) · ← 90 or more? |
| Grade B | Process | → Print grade · ← 80 or more? |
| 70 or more? | Decision | → Grade C(yes), Grade F(no) · ← 80 or more? |
| Grade C | Process | → Print grade · ← 70 or more? |
| Grade F | Process | → Print grade · ← 70 or more? |
| Print grade | Input/output | → End · ← Grade A, Grade B, Grade C, Grade F |
| End | Terminator | ← Print grade |
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.
# Grade from score flowchart
flowchart TD
s(["Start"])
a[/"Read score"/]
b{"90 or more?"}
c["Grade A"]
d{"80 or more?"}
e["Grade B"]
f{"70 or more?"}
g["Grade C"]
h["Grade F"]
o[/"Print grade"/]
z(["End"])
s --> a
a --> b
b -->|yes| c
b -->|no| d
d -->|yes| e
d -->|no| f
f -->|yes| g
f -->|no| h
c --> o
e --> o
g --> o
h --> o
o --> z