Decomposing a problem into sub-problems
Splitting a big problem into smaller sub-problems, such as input, process and output. Each part can be solved on its own, then the solutions are combined.
Understanding Decomposing a problem into sub-problems in Years 7–8 Creating Digital Solutions
What it does: Neither part needs the other to be finished first, so they can be solved on their own and at the same time. Combining the small solutions gives a complete solution to the original big problem. Decomposition means breaking a large problem into smaller parts that are easier to solve. Input is the data that goes into the system. Showing a message is the output. Output is the result shown to the user. Counting the steps is the process. Independent sub-problems can be solved separately. The email depends on the form data, so it is not independent. Each part is solved on its own, then the solutions are combined to solve the whole problem.
Common mistakes: The first step is to split the big problem into smaller parts, so the line should start with DECOMPOSE. COMBINE is what you do later, once the parts are solved. Getting the city name is an input sub-problem, not an output. The output sub-problem should show the weather to the user.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 3–47) and word search (Modules 3–125).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
decompositionFill in the Blanks
Spot the Error
Student with a class code? Join your class →