Why subroutines matter
Why subroutines matter

Structured programming starts with sequence, selection and iteration, but large programs quickly become hard to read if every step is written in one long block. A subroutine solves this by putting a named task in its own block of code and running it only when it is called.
Step-by-step lessons covering AQA GCSE Computer Science Structured programming and subroutines (procedures and functions) for GCSE Computer Science. Each lesson works through exam-style questions in Paper 1 and Paper 2 format. Build strong foundations in binary, logic and core programming constructs before moving on to the more complex algorithm design and evaluation questions.