Single lesson · Written for OCR J277

Extended programming problems (Paper 2 Section B) – OCR GCSE Computer Science lesson (J277)

Pupils learn to break a Section B programming problem into its requirements and write a logical solution that uses a subprogram and iteration.

Also in a bundle Systems Software, Languages and Data Handling – OCR GCSE Computer Science lessons (J277) 13 lessons for £39 · save 25% on buying separately

Lesson 10 of 13 in unit 11.2 Systems Software, Languages and Data Handling, taught in Year 11, Autumn 2. It answers one big question: How do we turn a Section B problem into marks?

By the end, pupils can break a Section B programming problem into its requirements and write a logical solution that uses a subprogram and iteration.

The Build (the main task)
Write a program for the vets that uses a function to total appointment lengths entered until 0 is typed, then outputs whether the day is full (over 480 minutes).
Support version
Requirement checklist with part-filled code: the function header, the loop and the return line given, with gaps to complete.
Challenge
Add validation so only lengths from 5 to 60 minutes are accepted, and return the number of appointments as well.
Real-world link
The booking app needs a function that totals a day's appointment times so reception knows when the vets are fully booked.
Key words
Subprogram, Iteration and Logical, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A function that prints its answer has returned it”; “Section B marks are only given for a complete, working program”.
OCR J277 specification
2.1.2 (designing, creating and refining algorithms: writing and completing algorithms in OCR Exam Reference Language for Paper 2); 2.2.1; 2.2.3 (additional programming techniques: file handling (open, read, write, close), records to store data, and SQL (SELECT, FROM, WHERE) to search for data).

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 can do it all on paper.

Also sold in the Systems Software, Languages and Data Handling unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

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

More for GCSE Computer Science (OCR)

See all

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