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.

Designing an algorithm: flowchart and pseudocode

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

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 4 short steps and a 6-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 11 November 2026.

← Predicting what a loop outputs · Calling a routine →

All lessons in Term 1 · Computing · Age 13