Designing and testing a complete program

About this lesson: Designing and testing a complete program

In short

Split a large problem into input, process and output parts.

Designing and testing a complete program

What you'll explore

Decompose: Break the problem down
Split a large problem into input, process and output parts.
Design: Flowchart
Design each part as a flowchart or pseudocode before coding.
Test plan: Expected vs actual
Plan tests with normal, boundary and erroneous data, then compare expected and actual results.
Improve: Design, build, test, feedback, improve
Development is a cycle.
Check yourself: Test data
A program accepts ages 13 to 19. Which is erroneous test data?

Also in this lesson

  • Step by step
  • Watch out for these
  • More than the lesson
  • Stretch your brain
  • Try it yourself

Words to know

Requirement
Something the program must do.
Structure chart
Diagram of modules in a program.
Test plan
Planned tests with expected results.
Iterative
Repeating cycles of improvement.

Sources

  • Raspberry Pi Foundation, Isaac Computer Science: software development
  • Agile Alliance: what is agile?
  • BBC Bitesize, GCSE Computer Science: testing
  • Python documentation: unittest

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 5 short steps and a 8-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 11 November 2026.

← Standard algorithms: totals, max, min, average, counting

All lessons in Term 1 · Computing · Age 15