Single lesson · Written for AQA GCSE Computer Science (8525)

Programming practice: sequence – AQA GCSE Computer Science lesson (8525)

Pupils learn to write, test and fix a complete sequence program with meaningful identifiers.

Also in a bundle Computer Systems and First Programs – AQA GCSE Computer Science lessons (8525) 13 lessons for £39 · save 25% on buying separately

Lesson 12 of 13 in unit 10.1 Computer Systems and First Programs, taught in Year 10, Autumn 1. It answers one big question: Why does the order of instructions matter in a program?

By the end, pupils can write, test and fix a complete sequence program with meaningful identifiers.

The Build (the main task)
Write a program for the trip planner. It must: input the number of pupils and the cost per pupil; calculate and output the total cost; output the number of full minibuses of 16 and the number of pupils left over. Use meaningful identifiers. (6 marks)
Support version
Parsons problem with one distractor that converts the cost to an integer instead of a real.
Challenge
Write a program for the school disco. It must input the number of tickets sold and the price of one ticket; output the money taken; output how many full tables of 8 are needed and how many people are left over. Use meaningful identifiers. (6 marks) This program runs, but 10 pupils at £15 gives a total cost of 160. Explain why it runs but gives the wrong total (2 marks). Write the corrected program with meaningful identifiers (3 marks). Give one test, with its expected output, that would show your program works (1 mark). Write the Build program in AQA pseudo-code (4 marks). Explain why the line that works out the total cost must come after both inputs and before its output (2 marks).
Real-world link
The finished trip planner: the cost of the trip and the minibuses it needs, ready for the school office.
Key words
Instruction, Identifier and Readable, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“The order of the lines does not matter as long as all of them are there”; “Short identifiers like a and b are fine because the program still works”.
AQA 8525 specification
3.2.2 (programming concepts: variables, constants, assignment, sequence, meaningful identifiers).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Pupils need computers for the main task.

Also sold in the Computer Systems and First Programs unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

Choose your school's Paper 1 language when you buy: C#, Python or VB.NET. You get that language's files: every program, code example, worked answer and programming task is written in it, and lessons with no code are the same in all three. Algorithms are also shown in AQA pseudo-code, as in the exam.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Programming practice - sequence - Quiz Quiz Trade Cards
  • Single-teacher licence: use and adapt it with your own classes
  • Your choice of Paper 1 language: C#, Python or VB.NET

More for GCSE Computer Science (AQA)

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.