Designing an algorithm: flowchart and pseudocode
About this lesson: Designing an algorithm: flowchart and pseudocode
In short
A heater algorithm: input the temperature; if it is below 18 °C, turn the heater on. Follow it in the flowchart and see the matching pseudocode line light up. Change the temperature.

What you'll explore
- Two ways to show it: Flowchart and pseudocode
- A heater algorithm: input the temperature; if it is below 18 °C, turn the heater on.
- Loops in a flowchart: An arrow that goes back
- A password check gives up to 3 tries. In a flowchart, a loop is an arrow back to an earlier box.
- The parts: Input, decision, repetition, output
- Every algorithm design should show its inputs, decisions, repeated steps and outputs. Look at each part in the heater algorithm.
- Check yourself: Flowchart symbols
- A flowchart box asks 'Is the score more than 100?'.
Also in this lesson
- Common mix-ups
- Symbols and keywords
- Morning routine
Words to know
- flowchart
- A diagram of an algorithm using symbols and arrows.
- decision
- A yes/no question that chooses a path.
- process
- A step that does something, such as a calculation.
- selection
- Choosing which steps to run.
- design
- Planning an algorithm before coding it.
Sources
- BBC Bitesize KS3 Computer Science
- Raspberry Pi Foundation, Computing curriculum resources