CIE AS & A Level Computer Science, section 12.1 (Program development life cycle)
Purpose of a life cycle
A program development life cycle is a structured series of stages for developing software. It makes sure the work is planned, organised and checked, so that the finished product meets the user's needs, on time and within budget, and is easier to manage.
The stages
| Stage | What happens | Output |
|---|---|---|
| Analysis | find out what the system must do: study the current system, interview users, collect requirements, and decide the problem to solve | requirements specification |
| Design | plan how the system will work: algorithms, data structures, structure charts, screen layouts and test plan | design documents |
| Coding (implementation) | write the program, following the design, in a suitable language | working program |
| Testing | check that the program meets the requirements and works correctly, using test data | test results |
| Maintenance | update and fix the program after it is in use | updated program |
The stages are linked: if the testing finds that the program does not meet the requirements, you may have to go back to an earlier stage.
Worked example: a library system
- Analysis: talk to the librarian to find out what records and reports are needed.
- Design: plan the tables, the screens and the algorithm for lending a book.
- Coding: write the program.
- Testing: try borrowing a book that is already out, and check the error message.
- Maintenance: later add a feature to email overdue reminders.
Documents
Each stage produces documents, such as the requirements specification, design, test plan and user guide, which help with later maintenance.
Common mistake: mixing up analysis and design. Analysis decides what the system must do; design decides how it will do it. Also, maintenance is part of the life cycle, not something that happens after it ends.
Exam tip: describe what happens at each stage and what it produces. Use the correct stage names, in order.
Check yourself
What happens in the analysis stage?
The problem and the requirements are investigated and recorded, in a requirements specification.
Identify the five stages of the life cycle.
Analysis, design, coding, testing and maintenance.
Why is a life cycle used?
It organises the development so that the software is planned, checked and meets the users’ needs.