Writing an algorithm as a flowchart from a problem
A diagram that solves a problem using symbols for start, input, process, decision, output and stop, joined by arrows. Label each decision Yes or No and test every path to Stop.
Understanding Writing an algorithm as a flowchart from a problem in IGCSE Computer Science Paper 2
What it does: Both exits of the decision lead to an output and then to Stop, so no path is left dangling. Using test data on the boundary value shows that both paths work and that the condition is correct. A check that has two outcomes needs a decision diamond. Each exit must be labelled Yes or No. Input and output use the parallelogram. The rectangle is for processes such as Total ← Total + Mark. A flowchart has one Start. It can have more than one path, but every path must end at a Stop. A repeated input needs an arrow that goes back to the input symbol. Only the valid Yes path continues on to Stop.
Common mistakes: OUTPUT must be drawn in a parallelogram (shown here as / /), not a process rectangle [ ]. It should be Yes -> /OUTPUT "Pass"/. Every arrow leaving a decision must be labelled Yes or No. The line should start Yes -> so the path is clear.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 254–264) and word search (Modules 254–274).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
flowchartFill in the Blanks
Spot the Error
Student with a class code? Join your class →