Longer programming questions – AQA GCSE Computer Science lesson (8525)
Pupils learn to plan and write a long program for a multi-part task, earning design and program marks.
Lesson 11 of 14 in unit 11.2 Software, Translators and Databases, taught in Year 11, Autumn 2. It answers one big question: How do we turn a long programming question into marks?
By the end, pupils can plan and write a long program for a multi-part task, earning design and program marks.
- The Build (the main task)
- Write a program for Northgate Vets' booking app, which has 8 morning appointment slots numbered 1 to 8. The program should: input slot numbers one at a time until 'stop' is entered; output Invalid slot if a slot is not from 1 to 8; output Taken if the slot has already been booked; otherwise store the booking in an array; when 'stop' is entered, output the number of slots booked and the first free slot, or Full if there is none. You should use indentation and meaningful identifiers. (11 marks)
- Support version
- The task's bullet points as a checklist with the matching constructs named.
- Challenge
- Write a function validSlot that takes a slot number as a parameter and returns True if it is from 1 to 8, and False if it is not. Call it with an input slot number and output the value it returns. (4 marks) Split the booking program into subroutines: write a function firstFree that takes the booked array as a parameter and returns the first free slot number, or 0 if every slot is booked. Show how it is called. (6 marks) Extend the booking program so that, after the first free slot, it outputs Free: and the number of every slot that is still free. (6 marks)
- Real-world link
- The vets' booking app.
- Key words
- Subroutine, Iteration and Logical, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Long questions are worth skipping if you cannot finish”; “A requirement can be missed if the program works”.
- AQA 8525 specification
- 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 Software, Translators and Databases 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 explain what system software and application software are, give examples of each, and explain why utility programs are needed.
Pupils learn to explain the need for an operating system and how it manages the processor, memory, input/output devices, applications and security.
Pupils learn to explain what a database is and describe tables, records, fields and data types.
Written for the specifications named. Not endorsed by or affiliated with any exam board.