KS3 · Computer Science
Flowcharts for algorithms
A flowchart adds 5 to a number while it’s under 20. Start it at 8. Does it output 20? Most people think so. Follow the arrows and find out.
Computer Science · Flowcharts
Saving up: follow the flow
An algorithm is a precise, ordered set of steps, and a flowchart draws one as shapes joined by arrows. This one takes in how much money you have saved, keeps adding 5 while the total is under 20, then outputs the total. The input is 8. Step through it and watch which shape lights up.
Before you press Next: with an input of 8, what number do you think this flowchart will output?
Output
Step 1: Every flowchart begins at its Start. From here, you just follow the arrow.
Use Next and Back to move one step at a time. Every value shown is worked out for you, step by step.
The four symbols
Which shape does each step belong in?
Which flowchart symbol should hold each step?
Still to sort
Terminator (rounded rectangle or oval) (0)
Marks the start or the end of the algorithm.
Where the line is: A terminator holds Start or End only. Any instruction that does something goes in a different shape.
Process (rectangle) (0)
An instruction or a calculation.
Where the line is: If data is coming in or a result is going out, it is input/output, not a process.
Input/output (parallelogram) (0)
Data coming in, or results going out.
Where the line is: Asking the user to type something is input, even though it sounds like a question. A diamond is only for a yes/no question the algorithm decides.
Decision (diamond) (0)
A question with two exits, such as yes/no or true/false.
Where the line is: It must be a question with exactly two answers, one for each exit. If nothing is being asked, it is not a decision.
A flowchart uses four standard shapes. Pick a step, then pick the shape it must go in.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
A flowchart is an algorithm you can follow with your finger. The arrows set the order, a diamond picks the path, and an arrow pointing back makes steps repeat until a question says stop.
What you need to know
- An algorithm is a precise, ordered set of steps (instructions) for solving a problem or completing a task. You can represent it before it is programmed, for example as a flowchart or as written steps.
- A flowchart is a diagram of an algorithm made from standard shapes joined by arrows (flow lines). The arrows show the order the steps are carried out in.
- The four symbols: a terminator (rounded rectangle or oval) marks Start and End; a process (rectangle) holds an instruction or calculation; an input/output (parallelogram) shows data coming in or results going out; a decision (diamond) holds a question with two exits, such as yes/no or true/false.
- Sequence: steps follow one after another along the arrows, each carried out once, in order.
- Selection: a decision asks a question whose answer is yes or no (true or false), and the algorithm follows a different path depending on the answer.
- Iteration (repetition): an arrow leads back to an earlier step so a group of steps repeats. A decision controls when the repetition stops.
- To draw a flowchart from a description: one Start and at least one End terminator, each step in the correct symbol, both exits of every decision labelled, and arrows showing the flow between every step.
- To trace a flowchart, follow it step by step from Start to End with given inputs to work out the output. Tracing also checks whether the algorithm does what it should, so you can find and correct errors.
- You can compare two flowcharts that solve the same problem by whether they work correctly for every input and by how many steps they take.
The big picture
A flowchart draws an algorithm (a precise, ordered set of steps) as standard shapes joined by arrows, and the arrows set the order. Terminators mark Start and End, rectangles hold processes, parallelograms hold input and output, and diamonds hold decisions with two exits. Steps can run in sequence, branch at a decision (selection), or repeat when an arrow leads back (iteration), with a decision controlling when the repeating stops. Trace a flowchart with real inputs to find its output and catch errors; compare two flowcharts by whether they work for every input and how many steps they take.
Key points
Worked example
Problem
Trace this flowchart with an input of 4 and write down everything it outputs. Start → INPUT n → count = 1 → decision “count ≤ 3?”. Yes: OUTPUT n × count, then count = count + 1, then an arrow back up to the decision. No: End.
⚠ Watch out
Drawing a decision with only one way out, or a loop with no decision in it. Every decision needs two labelled exits, and every loop needs a decision that can send the flow out. Without one, the steps repeat for ever.
Memory hook
Ovals open and close, rectangles do, parallelograms pass data in and out, and diamonds decide. A loop only ends when a diamond lets it out.
Check yourself
Cover the page. Sketch the four symbols and say what each holds. What makes a loop stop? What do you do at each diamond when tracing? How would you pick the better of two flowcharts?
Flashcards
(14)What is an algorithm?
What is a flowchart?
In a flowchart, what do the arrows show?
Which symbol marks the start and the end, and what shape is it?
What goes in a rectangle (process box)?
What does a parallelogram show?
What does a diamond hold?
What is sequence in a flowchart?
What is selection in a flowchart?
How does iteration (repetition) appear in a flowchart?
What controls when a flowchart loop stops?
Five checks for a flowchart you have drawn?
What does it mean to trace a flowchart?
Two ways to compare flowcharts that solve the same problem?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore KS3 Computer Science topics
- Abstraction in computational thinking
- Adding binary numbers
- Binary to denary conversion
- Boolean logic: AND, OR, NOT
- Bubble sort
- Building truth tables
- Client-server vs peer-to-peer
- Collecting and recording data
- Comparing sorting algorithms
- Compressing data
- Creating a 3D animation
- Decomposition: splitting problems up
How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 2 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.