Practice Decomposition in CS Thinking

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

Breaking a complex problem into smaller, more manageable parts that are easier to solve.

Eating an elephant: one bite at a time. Big problems become many small ones.

Example 1

easy
You need to plan a school sports day. Decompose this problem into smaller sub-problems.

Example 2

medium
Decompose the task of building a simple calculator program.

Example 3

easy
Decompose the problem of creating a sandwich into at least 4 sub-tasks.

Example 4

medium
Decompose building a class voting app into four modules, and identify one dependency between them.