- Identify standard flowchart symbols
- Follow a flowchart step by step
- Plan a simple algorithm using a decision
You know that an algorithm is a set of steps that solves a problem. A flowchart is one way to show those steps.
Drawing an algorithm
A flowchart shows an algorithm as a diagram. Each shape has a meaning, and arrows show the order of the steps. Programmers often use flowcharts to plan before they write code. This helps them find mistakes early and explain their ideas to other people.
A diagram that shows the steps of an algorithm using standard symbols.
A step with a yes or no question that chooses the next path.
Standard symbols
| Symbol | Use | | --- | --- | | Oval | Start or end | | Parallelogram | Input or output | | Rectangle | Process, such as a calculation | | Diamond | Decision |
Plan an algorithm that says whether a password has at least 8 characters.
- Oval: Start.
- Parallelogram: Input password.
- Diamond: Is the length at least 8?
- Yes path: Output Strong enough.
- No path: Output Too short.
- Oval: End.
A diamond must show where to go for yes and where to go for no.
Practice
Quick check
Which symbol starts a flowchart?
Which step belongs in a rectangle?
How many exits does a yes or no decision have?
- Flowcharts show algorithms as diagrams.
- Each symbol has a meaning.
- Arrows show the order of steps.
- Decisions need labelled yes and no paths.
