- Flowcharts show how algorithms can be represented visually in a diagrammatic format
- Each flowchart has a start and an end with arrows showing the order each task or instruction needs to be carried out in
- Flowcharts are made of several symbols:
- Terminator symbols: Also known as Begin/End symbols. These indicate where a flowchart starts and stops
- Process symbols: These show simple actions being performed such as assigning values or performing arithmetic operations on values
- Processes can also represent other flowcharts or summarised actions. For example, searching or sorting a list is a complex process which would require its own flowchart. A process symbol could be used to represent sorting or searching in a separate flowchart. This is represented by a process with an additional bar on either side of the symbol
- Input/Output symbols: These show the input of data and output of data
- Decision symbols: These symbols are used to decide whether to take one of two routes by answering a true/false or yes/no question. They can be used for selection and iteration
- Flow lines: Flow lines use arrows to show the direction of flow and what task to perform next. Usually these are top to bottom and left to right
Figure 3: Flowchart symbols: terminator, input/output, process, decision (left to right)
Figure 4: Flowchart for finding the largest of ten numbers