Programming project: plan – AQA GCSE Computer Science lesson (8525)
Pupils learn to decompose a programming task, plan its subroutines and choose test data before writing code.
Lesson 7 of 10 in unit 10.6 Protocols, Network Security and Sorting, taught in Year 10, Summer 2. It answers one big question: How do programmers plan a program before they write it?
By the end, pupils can decompose a programming task, plan its subroutines and choose test data before writing code.
- The Build (the main task)
- Complete the decomposition table: break the program into at least four sub-problems and give each a subroutine name, its parameters and what it returns. (4 marks) Complete the test plan for the score, with normal, boundary and erroneous data and the expected result of each. (2 marks)
- Support version
- A part-completed decomposition and a test plan template.
- Challenge
- Write the topIndex subroutine in AQA pseudo-code. It takes the array scores as a parameter and returns the index of the highest score. (4 marks) Each team must have from 2 to 5 players. Write a test plan for the team size: two normal values, the boundary data and two erroneous values, each with its expected result. (4 marks) The café also wants a snack-till program: input the items bought, add up the cost, take off 10% for tournament players, and output the total. Decompose it into four sub-problems and give each a subroutine name, its parameters and what it returns. (6 marks)
- Real-world link
- The café's tournament leaderboard.
- Key words
- Decomposition, Subroutine and Plan, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Planning wastes time that could be spent coding”; “Test data only needs normal values”.
- AQA 8525 specification
- 3.1.1 (decomposition (programming project)); 3.2.
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 Protocols, Network Security and Sorting 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)
- 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 allPupils learn to define a network protocol and explain the purpose of TCP, IP, HTTP, HTTPS, SMTP and IMAP.
Pupils learn to explain and carry out a bubble sort, showing the list each time the order changes.
Pupils learn to name and describe the four layers of the TCP/IP model and say which protocols work at each.
Written for the specifications named. Not endorsed by or affiliated with any exam board.