The program development life cycle Cambridge IGCSE Computer Science revision

Not started

Learn it

In plain words

Nobody builds a house by laying bricks on the first morning. First you find out what is wanted, then you draw plans, then you build, and then you check everything works. Programs are developed in the same four stages.

7 things to know

  1. Analysis: identify the problem and what the program is required to do. This uses abstraction and decomposition.
  2. Design: plan the solution, using structure diagrams, flowcharts and pseudocode.
  3. Coding: write the program code, testing each part as it is written and correcting it (iterative testing).
  4. Testing: test the finished program with test data.
  5. Abstraction means keeping the key elements of a problem and leaving out detail that is not needed. Decomposition means breaking a problem down into smaller parts.
  6. Every computer system is made up of sub-systems, which are made up of further sub-systems. A problem can be decomposed into its inputs, processes, outputs and storage.
  7. A structure diagram shows this as a hierarchy: the whole system at the top, its sub-systems on the level below, and each of those broken down further.

Worked example

A program is needed to work out the cost of a taxi ride from the distance travelled. Decompose the problem into its component parts.

  1. Input: the distance travelled.
  2. Process: multiply the distance by the price for each kilometre, and add the fixed charge.
  3. Output: the cost of the ride.
  4. Storage: the price for each kilometre and the fixed charge, which are kept so they can be used every time.

Tips and tricks

  • The four stages in order are analysis, design, coding, testing. Know one thing that happens in each.
  • Decomposition appears in both analysis and design: the problem is broken down first, then the solution.
6 questions, about 2 minutes.

It lands in your notebook with its questions as flashcards.

The program development life cycle: 6 questions and answers

These are the quiz’s questions. Do the quiz first, then come back here for the ones that got you.

  1. What is the first stage of the program development life cycle?
    • analysis (the answer)
    • design
    • coding
    • testing

    You have to understand the problem before planning a solution.

  2. In which stage are flowcharts and structure diagrams produced?
    • analysis
    • design (the answer)
    • coding
    • testing

    Design is where the solution is planned.

  3. What is decomposition?
    • removing errors from a program
    • breaking a problem down into smaller parts (the answer)
    • writing code
    • throwing away a failed design

    Each smaller part is easier to solve.

  4. What is abstraction?
    • adding as much detail as possible
    • keeping the key elements and leaving out unnecessary detail (the answer)
    • testing a program
    • drawing a diagram

    A map is an abstraction: it shows roads, not every tree.

  5. What is iterative testing?
    • testing only at the very end
    • testing each part as it is written, correcting it and testing again (the answer)
    • testing with no data
    • asking the user to test the program

    It happens during the coding stage.

  6. What does a structure diagram show?
    • the order in which statements run
    • a system broken down into its sub-systems (the answer)
    • the values of variables
    • the contents of a file

    The whole system is at the top, with each level below in more detail.

Still stuck on this one?Ask in the Papermunch Discord, or help someone else who is. Discord is for ages 13 and up.Join the server

Things you can type

Or go straight to

Or browse a shelf