HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Planning a Program: Life Cycle, Decomposition and Flowcharts
  1. 1The program development life cycle
  2. 2Decomposition, abstraction and structure diagrams
  3. 3Flowcharts
  1. Computer Science
  2. /Planning a Program: Life Cycle, Decomposition and Flowcharts
  3. /The program development life cycle

Course 7.1·Lesson 1 of 3

The program development life cycle

A program is planned and built in four stages: analysis, design, coding and testing. This lesson says what happens at each stage, from finding the requirements to testing with test data, and why a programmer often goes back to an earlier stage.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Planning a Program: Life Cycle, Decomposition and Flowcharts
  1. 1The program development life cycle
  2. 2Decomposition, abstraction and structure diagrams
  3. 3Flowcharts

Try the code and the simulations beside the lesson.

Before the first line of code

Think about building a garden shed. You do not start by nailing boards together. First you decide what the shed is for and how big it must be. Then you draw a plan. Then you build it, checking each wall as you go. At the end you check the whole shed. Writing a program works the same way.

The program development life cycle is the set of stages a program goes through as it is made. The Cambridge IGCSE syllabus uses four stages: analysis, design, coding and testing.

Four boxes in a cycle. Analysis: abstraction, decomposition, the problem and the requirements. An arrow leads to Design: decomposition, structure diagrams, flowcharts, pseudocode. An arrow leads down to Coding: writing program code, iterative testing. An arrow leads to Testing: testing the program with test data. A dashed arrow leads from Testing back up to Analysis, labelled go back to an earlier stage when a problem is found.

Stage 1: analysis

In the analysis stage the programmer finds out exactly what the problem is and what the program must do. The list of things it must do is the requirements. The tasks at this stage are:

  • identifying the problem: what is wrong now, or what is needed;
  • finding the requirements: what the program must input, what it must work out, what it must output and what it must store;
  • abstraction: keeping only the details that matter to the problem, and leaving out the rest;
  • decomposition: breaking the problem into smaller parts that are easier to solve.

Here is an example. A small cinema wants a program for its ticket desk. After talking to the staff, the programmer writes these requirements.

  1. Input the number of adults and the number of children in a group.
  2. An adult ticket costs 999 dollars and a child ticket costs 555 dollars.
  3. Output the total cost of the group.

Notice what is left out. The colour of the tickets and the name of the film do not change the total, so the program ignores them. That is abstraction. You meet abstraction and decomposition again in the next lesson.

Stage 2: design

In the design stage the programmer plans how the program will work. Nothing is typed into a computer yet. The tasks are:

  • decomposition into sub-tasks, shown in a structure diagram;
  • the steps of each part, drawn as a flowchart or written in pseudocode.

The pseudocode for the ticket program is only three steps of processing.

pseudocode
INPUT Adults
INPUT Children
Total ← Adults * 9 + Children * 5
OUTPUT "Total cost: ", Total

The arrow ← means "takes the value". So the third line works out the total and stores it in Total.

Stage 3: coding

In the coding stage the programmer writes the program code in a programming language. The design tells them what to write. The syllabus names one more task here: iterative testing. The programmer tests each part as soon as it is written, corrects any mistake, and tests it again. This repeats until the part works. "Iterative" means "repeated".

Stage 4: testing

In the testing stage the whole program is tested with test data. Test data is a set of inputs, chosen on purpose, with the result that each input should give. A test passes when the program gives the expected result. You learn how to choose test data in the second course of this chapter.

Round the cycle again

The stages make a cycle. Testing may show that a requirement was missed, so the programmer goes back to analysis. A design may be too hard to code, so the programmer goes back to design. Later, when the users ask for a change, the cycle starts again.

Practise with new numbers

Try it in Python

The grey block marked pseudocode is written in the exam style. It does not run on the site. The box marked Python below it is the same algorithm in Python, and that one runs. Here the program is the ticket program from the analysis. The inputs are fixed, so the program runs at once.

Read it first. Then run it. Check the total by hand: three adults and two children.

1. Change the adult price to 10. Which stage of the life cycle would decide a change like this?

2. Set children = 0. Predict the output, then run it.

Common mistakes

  • Starting with the code. Without analysis and design, a program often solves the wrong problem.
  • Mixing up design and coding. Design is the plan: structure diagrams, flowcharts and pseudocode. Coding is writing the program in a programming language.
  • Thinking testing comes only at the end. In the coding stage each part is already tested as it is written. That is iterative testing.
  • Naming five or six stages. In this syllabus the cycle has four stages: analysis, design, coding and testing.

Remember these

  • The four stages are analysis, design, coding and testing.
  • Analysis: identify the problem and the requirements, using abstraction and decomposition.
  • Design: decomposition, structure diagrams, flowcharts and pseudocode.
  • Coding: write the program code, with iterative testing.
  • Testing: test the whole program with test data.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A programmer draws a flowchart for a parking-meter program. Which stage of the life cycle is this?
  1. A programmer types a function, runs it with two inputs, fixes a mistake and runs it again. What is this called, and in which stage does it happen?
  1. A school wants a program that tells pupils their bus time. Give one requirement that the analysis might find.
  1. Testing shows that the program cannot handle a group with no adults at all. Which stage might the programmer go back to?
  1. Why does the ticket program ignore the name of the film?

References

  • Cambridge International, IGCSE Computer Science 0478 syllabus (2026, 2027 and 2028), unit 7 Algorithm design and problem-solving, part 1: the program development life cycle.

Enroll free in Planning a Program: Life Cycle, Decomposition and Flowcharts

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A team is making a program that lets pupils order lunch from the school canteen before the morning…Easy · High School (9–10) · by StemPy Lab
In the analysis stage of the cinema ticket program, the manager adds a new requirement: a group of…Medium · High School (9–10) · by StemPy Lab
A programmer builds a program that works out a pupil's average mark from five tests…Medium · High School (9–10) · by StemPy Lab
Next: lesson 2Decomposition, abstraction and structure diagrams
← Planning a Program: Life Cycle, Decomposition and Flowcharts
← PreviousDecomposition, abstraction and structure diagrams →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place in the course.