Arithmetic operations, including DIV and MOD – AQA GCSE Computer Science lesson (8525)
Pupils learn to use +, -, *, /, DIV and MOD in the class's language and AQA pseudo-code, and explain integer division and remainders.
Lesson 8 of 13 in unit 10.1 Computer Systems and First Programs, taught in Year 10, Autumn 1. It answers one big question: How can a program share things out into equal groups?
By the end, pupils can use +, -, *, /, DIV and MOD in the class's language and AQA pseudo-code, and explain integer division and remainders.
- The Build (the main task)
- State the value of 17 DIV 5 and of 17 MOD 5. (2 marks) Write a program that inputs the number of pupils and outputs the number of full minibuses of 16 and the number of pupils left over. (4 marks)
- Support version
- Part-filled code: the input and conversion are written; pupils complete the two calculation lines and the prints.
- Challenge
- Write a program that inputs a number of minutes and outputs it as hours and minutes. For example, 135 is output as 2 hours 15 minutes. (4 marks) Explain how MOD can be used to test whether a number is even. Then write the test in AQA pseudo-code, storing the result in a Boolean variable isEven. (4 marks) Complete a trace table for this AQA pseudo-code algorithm. Then state the purpose of the algorithm. (6 marks)
- Real-world link
- The trip planner works out how many full minibuses of 16 a trip needs and how many pupils are left over.
- Key words
- DIV, MOD and Remainder, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “DIV rounds to the nearest whole number, so 7 DIV 2 is 4”; “MOD gives the decimal part, so 7 MOD 2 is 0.5”.
- AQA 8525 specification
- 3.2.3 (arithmetic operations, including integer division and remainders).
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)
- 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 an algorithm is, tell an algorithm from a program, and pick out the inputs, processing and outputs in one.
Pupils learn to explain decomposition and abstraction and use both on a real problem.
Pupils learn to define hardware and software, explain how they depend on each other, and describe the CPU's job with main memory.
Written for the specifications named. Not endorsed by or affiliated with any exam board.