The Learning Hub/Topic 11
๐Ÿ’ป Topic 11

Programming Scenarios

Three interactive labs for the Paper 2 programming scenario question. The first is reading: pick out the inputs, processes and outputs in a scenario, name the data structures, and list what the program must do before any code is written (11.1โ€“11.2). The second is building: put answers together from six reusable code patterns (11.3). The third is writing a complete answer: plan it, write it, and check it against what a good answer shows (11.4). Each idea is taught, practised, then tested. Work straight through, or jump to the part you need.

This topic draws on syllabus Topics 7 and 8 (algorithm design and programming). In the exam, answers may be in pseudocode or program code; the markers on this site read pseudocode.

11.1โ€“11.2

Read

Read the scenario before you code. Tag each sentence as input, process or output, name every data structure, and turn the scenario into a checklist of what the program must do.

11.3

Build

Build answers from six reusable code patterns: validation loops, totalling, counting, highest or lowest with every match, nested loops for 2D arrays, and messages with comments. Your code is run on test data.

11.4

Ship

Write complete answers to full scenarios, from a guided walk-through to a 25-minute exam mode. Your pseudocode is run on test data and checked against what a good answer shows.

๐Ÿ“š Want the written theory too? Read the Topic 11 lessons in the Knowledge Library, then come back to train.

๐ŸŽ“ The last topic in the Learning Hub

Topic 11 is where your programming skills come together. When you have finished the Ship Lab, head back to The Learning Hub, or start again from Topic 1 to revise.