UNIT 2 • MODULE 2 • LESSON 01
Think about the software you rely on in a single school day. A bank app shows your parent the balance before a payment. The school uses a system to record attendance and print report cards. A taxi or delivery app tracks drivers across town. Hospitals, airports, the electricity company and government offices all run on software. If any of these systems is late, full of faults, or hard to change, real people pay the price.
In Unit 1 you learned to solve a problem by writing an algorithm and turning it into a C program. That works well for a program one person writes in a week. This module asks a bigger question: how do teams build large software products that many people depend on, for years, without the project collapsing? The answer is software engineering: a disciplined, structured approach to specifying, designing, building, testing and maintaining software.
What you will learn
- Why organisations need a structured approach to developing software, and what goes wrong without one.
- Why standard interfaces, management control, visibility of progress and risk management matter.
- Why end users and management must be involved throughout a project.
- A simple Gantt chart for planning and tracking a project.
- The attributes of well-engineered software: maintainability, dependability, efficiency, usability, portability and appropriate documentation.
- The difference between system documentation and user documentation.
- How the same C program can be written in a hard-to-maintain way or in a well-engineered way.
Part 1: What is software engineering?
Software engineering is the application of a systematic, disciplined and measurable approach to the development, operation and maintenance of software. The key word is systematic. Instead of jumping straight into code, a software engineering team works through recognised phases, produces documents that others can check, and manages time, money and risk as the project moves along.
It helps to compare software with other engineering. Nobody builds a bridge across a river by sending workers to start pouring concrete on the first morning. Engineers first study the site, agree what the bridge must carry, draw designs, check the designs, build in stages, inspect the work, and then maintain the bridge for decades. Software is invisible, so it is tempting to skip these steps. Experience has shown that skipping them is exactly what makes large projects fail.
Throughout this module you will meet the phases that a structured process uses. Different textbooks name them slightly differently, but the core ideas are the same:
| Phase | Main question | Lesson in this module |
| Analysis (requirements) | What must the system do, and is it worth building? | Lessons 03 and 04 |
| Design | How will the system be organised to meet the requirements? | Lessons 05 and 06 |
| Implementation | How do we turn the design into working code? | Lesson 07 |
| Validation (testing) | Does the system do what was specified, and does it satisfy users? | Lesson 08 |
| Evolution (maintenance) | How do we keep the system useful as needs change? | Lesson 09 |
Lesson 02 looks at different process models, which arrange these phases in different ways. Lesson 10 steps back to examine wider issues such as privacy, security and intellectual property.
Part 2: Why a structured approach is needed
The syllabus groups the reasons for a structured software process under a handful of headings. Learn each one with its own short example, because exam questions often give you a situation and ask you to name or explain the reason that applies.
1. Organisations depend on their computer systems
Most organisations can no longer work without software. A supermarket cannot sell anything if its point-of-sale system is down. A credit union cannot process loans if its accounts system fails. When a business depends this heavily on a system, faults are expensive: lost sales, angry customers, legal trouble and damage to reputation. A structured process reduces the chance of serious faults reaching the live system and makes faults quicker to find and fix when they do appear.
2. Lessons from troubled projects
From the 1960s onwards, as programs grew larger, many software projects ran badly. Writers at the time described a software crisis. Three problems kept recurring:
- Rising cost. Projects went far over budget, and the cost of software overtook the cost of the hardware it ran on.
- Dissatisfied users and managers. Finished systems often did not do what users needed, were hard to use, or arrived too late to be useful.
- Growing length and complexity. Programs grew to hundreds of thousands, then millions, of lines. No single programmer could keep the whole system in their head.
A structured approach responds to each problem. Careful requirements analysis checks that the system is what users actually need. Design breaks complexity into manageable modules. Planning and estimation keep costs visible from the start rather than discovered at the end.
3. The need for standard interfaces
Software rarely works alone. It must talk to people (the user interface) and to other software (for example a payroll system sending data to a bank, or an app reading data from a web service). If every programmer invents their own screens, file formats and data exchanges, users have to relearn each system and other systems cannot connect to it. A structured process agrees interfaces early and documents them, so that screens behave consistently and other programs know exactly what data to send and expect.
4. Control, visibility and risk management
Managers must be able to answer simple questions at any time: How far along are we? Are we on budget? What could go wrong? Code on a programmer’s laptop is invisible to a manager. A structured process creates visibility by producing deliverables at the end of each phase, such as a requirements specification or a test report, that can be reviewed and signed off. It gives control because the next phase does not start until the current one is checked. It supports risk management: identifying what could go wrong (a key programmer leaving, a supplier delivering late, a requirement turning out to be impossible) and planning how to reduce or respond to each risk.
5. Involving end users and management
The people who will use a system know things that programmers do not: how the work really happens, which screens they need, and which mistakes are common. Management decides budgets and priorities and must support the change the system brings. When users and managers are involved from the start, through interviews, reviews of prototypes and acceptance testing, the finished system is far more likely to be accepted and used. When they are left out, systems are often rejected even if they work technically.
Try it 1Which reason for a structured process?
Read each short project story. Choose the reason for a structured approach that it best illustrates.
Part 3: Planning and tracking with a Gantt chart
Control and visibility need a plan that everyone can see. A common planning tool is the Gantt chart, a bar chart in which each row is a task and each bar shows when the task starts and finishes. Time runs from left to right, usually in days or weeks.
Read the chart above for a 12-week project to build a homework-tracking app for a school.
- Each task has a start week and an end week. Coding runs from week 6 to week 9.
- Some bars overlap. Testing begins in week 8 while coding is still finishing, because finished modules can be tested early.
- Some tasks depend on others. Design cannot begin until enough requirements are known, so its bar starts after requirements are under way.
- The final marker shows the planned go-live date. If coding slips by two weeks, the manager can see at once that testing and handover will slip too, unless something changes.
A Gantt chart does not make a project succeed by itself, but it gives managers and users a shared picture of the timeline. During the project, the team can shade completed parts of each bar to compare progress against the plan. That is visibility and control in practice. Spreadsheet programs and project-management software can draw Gantt charts automatically from a list of tasks, start dates and durations.
Try it 2Read the Gantt chart
Use the Gantt chart above to answer each question.
Part 4: Attributes of well-engineered software
A structured process aims to produce a well-engineered software product. A program can produce correct output and still be poorly engineered: hard to change, slow, confusing or impossible to move to new hardware. The syllabus names six attributes. Learn a definition and an example for each.
| Attribute | What it means | Example |
| Maintainability | The software can be changed easily to fix faults, adapt to new conditions or add features, because it is clearly structured and documented. | Tax rates are stored as named constants in one place, so a rate change needs one edit, not fifty. |
| Dependability | Users can trust it: it is reliable (works without failing), available when needed, safe, and secure against misuse. | A hospital booking system runs all day without crashing and refuses unauthorised logins. |
| Efficiency | It does not waste resources such as processor time, memory, storage or network bandwidth. | Searching a sorted list of 10,000 records with binary search instead of checking every record. |
| Usability | Intended users can learn and use it with reasonable effort, and the interface suits the task and the users. | Clear labels, sensible defaults and helpful error messages on a school registration form. |
| Portability | It can be moved to a different hardware platform or operating system with little change. | A C program written to the standard, without system-specific calls, compiles on Windows, macOS and Linux. |
| Appropriate documentation | Suitable written material exists for those who maintain the system and those who use it. | A technical manual for programmers and a step-by-step user guide for office staff. |
Some attributes pull against each other. Making software extremely efficient can make the code harder to read, which reduces maintainability. Adding strong security checks can make a system slightly harder to use. Good engineers make sensible trade-offs based on what matters most for each system. For an air-traffic system, dependability comes first. For a game, usability and efficiency matter a great deal.
System documentation vs user documentation
The documentation attribute has two audiences, and exam questions often ask you to tell them apart.
| System (technical) documentation | User documentation | |
| Written for | Programmers and analysts who maintain or extend the system | People who use the system day to day |
| Typical contents | Requirements and design documents, data dictionary, structure charts, program listings with comments, test plans and results | Installation steps, how to carry out each task, screenshots, error messages and what to do, frequently asked questions, tutorials |
| Purpose | Explain how the system works inside, so it can be maintained | Explain how to use the system to get work done |
Try it 3Name the attribute
Each description shows a strength or a weakness. Choose the attribute it is mainly about.
Part 5: Seeing the difference in C
Software engineering is not only about documents and diagrams. The same ideas show up in code. Here is a small program from a school that hires out laptops. Both versions print exactly the same output. Read the first one and imagine you have been asked to change the daily rate.
Worked example 1: works, but hard to maintain
#include <stdio.h>
int main(void)
{
int d[4] = {3, 7, 12, 5};
for (int i = 0; i < 4; i++) {
double t = d[i] * 45.0;
if (d[i] > 10) t = t * 0.9;
printf("%d %.2f\n", d[i], t);
}
return 0;
}
Output:
3 135.00 7 315.00 12 486.00 5 225.00
The program is correct, yet a maintainer has to guess what 45.0, 10 and 0.9 mean. These are magic numbers: unexplained values written directly into the code. The variable names d and t say nothing. The calculation is buried inside the loop, so it cannot be reused or tested on its own.
Worked example 2: the same job, well engineered
#include <stdio.h>
#define DAILY_RATE 45.00
#define LONG_HIRE 10 /* days */
#define LONG_DISCOUNT 0.10 /* 10% off */
/* Cost of hiring one laptop for days. */
double hireCost(int days)
{
double cost = days * DAILY_RATE;
if (days > LONG_HIRE)
cost = cost * (1 - LONG_DISCOUNT);
return cost;
}
int main(void)
{
int days[] = {3, 7, 12, 5};
int n = 4;
printf("Days Cost ($)\n");
for (int i = 0; i < n; i++)
printf("%4d %8.2f\n", days[i],
hireCost(days[i]));
return 0;
}
Output:
Days Cost ($) 3 135.00 7 315.00 12 486.00 5 225.00
Compare the two. Named constants (DAILY_RATE, LONG_HIRE, LONG_DISCOUNT) put each business rule in one place with a comment. The calculation is in its own function, hireCost, with a comment saying what it does, so it can be tested separately and reused by other parts of a larger system. The output has headings, which helps usability. The code uses only standard C, which helps portability. None of this changes what the program computes. It changes how cheaply and safely the program can be looked after for years, and that is what maintainability means.
You met these habits in Unit 1 • Module 3 • Lesson 10 – Testing, Debugging and Good Style in C. Software engineering explains why they matter: on a real system, most of the total cost comes after the first release, when people need to read and change the code.
Try it 4Software engineering basics drill
Pick a mode. “Reasons” asks why a structured process is needed. “Attributes” asks which quality of well-engineered software is involved.
Common mistakes
- Saying software engineering is "just programming". Programming is one activity inside a much larger process that includes analysis, design, testing and maintenance.
- Listing an attribute without explaining it. In an exam, "maintainability" alone may earn little. Add a short meaning, such as "easy to change because the code is modular and documented".
- Mixing up efficiency and dependability. Efficiency is about not wasting resources. Dependability is about trust: reliability, availability, safety and security.
- Treating documentation as one thing. Name the audience: system documentation for maintainers, user documentation for users.
- Thinking a Gantt chart shows how tasks are done. It shows when tasks happen and how long they take, not how to do them.
Summary
| Idea | Key point |
| Software engineering | A systematic, disciplined approach to developing, operating and maintaining software. |
| Why a structured process | Dependence on systems; past troubled projects (cost, dissatisfaction, complexity); standard interfaces; control, visibility and risk management; user and management involvement. |
| Gantt chart | Bars against a timeline showing when each task starts and ends; supports planning, visibility and control. |
| Six attributes | Maintainability, dependability, efficiency, usability, portability and appropriate documentation. |
| Two kinds of documentation | System documentation for maintainers; user documentation for users. |
Review questions
1. Define software engineering in one or two sentences.
Show answer
Software engineering is a systematic, disciplined approach to specifying, designing, building, testing and maintaining software so that it is delivered on time and within budget and meets users’ needs.
2. Give THREE reasons why organisations need a structured approach to software development.
Show answer
Any three, for example: organisations depend on their systems, so faults are costly; past projects suffered from rising costs, dissatisfied users and growing complexity; systems need standard interfaces to users and other software; managers need control, visibility of progress and risk management; users and management must be involved for the system to be accepted.
3. Explain what is meant by "visibility of the process" and how a structured approach provides it.
Show answer
Visibility means managers and clients can see how far the project has progressed. A structured approach provides it by producing deliverables (such as a requirements specification, design documents and test reports) at the end of each phase that can be reviewed and signed off.
4. Why should end users be involved in a software project?
Show answer
Users know how the work is really done and what they need. Involving them through interviews, prototype reviews and acceptance testing makes it more likely the system fits their needs and is accepted.
5. State and explain FOUR attributes of well-engineered software.
Show answer
Any four, for example: maintainability (easy to change because it is clear and documented); dependability (reliable, available, safe and secure); efficiency (does not waste processor time, memory or other resources); usability (easy for its users to learn and use); portability (can be moved to another platform with little change); appropriate documentation (system and user documentation exist).
6. Distinguish between system documentation and user documentation, giving an example of each.
Show answer
System documentation is for programmers and analysts and explains how the system works (for example a data dictionary or structure chart). User documentation is for people who use the system and explains how to carry out tasks (for example a user guide with screenshots).
7. Using Worked example 2, explain TWO ways the program is more maintainable than Worked example 1.
Show answer
Named constants put each business rule in one labelled place, so a rate change is one edit; the calculation is in its own commented function hireCost, so it can be understood, tested and reused separately. Meaningful names also help.
8. What does a Gantt chart show, and how does it help a project manager?
Show answer
It shows each task as a bar on a timeline from its start to its end. It helps the manager plan, see which tasks overlap or depend on each other, compare progress with the plan and spot delays early.
Homework
- Interview someone who uses software at work (a shop, office, school or clinic). Ask what happens when the system fails, and write a short paragraph linking their answer to "dependence on computer systems".
- Draw a Gantt chart for a five-week school project of your choice with at least five tasks, including at least one overlap.
- For an app you use daily, give one example each of good usability and poor usability, and suggest an improvement.
- Rewrite a short C program you wrote in Unit 1 using named constants, meaningful names and at least one function with a comment. Explain how your changes improve maintainability.
- Write a half-page user guide for one task in that program, for someone who has never seen it.
Mastery quiz: Structured process and well-engineered software
This 10-question quiz is separate from the short Quick quiz at the end of the lesson. Score 8/10 or higher to earn this lesson’s badge. Your best score is saved in this browser on this device.
Mastery quiz: Why a Structured Software Process, and What Well-Engineered Software Looks Like
Your course badges: loading saved progress…
View badges
No course badges earned yet. Score 8/10 in a lesson quiz to earn its badge.
Saved in this browser on this device. Clearing browser data may remove your badges.
Answer all 10 questions. Earn this lesson’s badge at 8/10 or higher. Read the explanations, revisit the Try it activities and retry as often as you need. These are self-study badges, not formal grades.
Exam tips
Specimen Unit 2 Paper 01 (2021), Items 17 and 20. Both test the syllabus list of attributes of well-engineered software. One asks you to reject an option that is not on the list; the other describes a property and asks you to name it. Learn the six attributes by name, and attach a one-line meaning to each so that you can recognise a description as well as a label.
For a written question asking for reasons for a structured approach, give the reason and a short consequence, for example: "Organisations depend on their systems, so a fault can stop the business; a structured process reduces faults." A bare list usually earns fewer marks than reasons with explanations.
When asked to distinguish two types of documentation, use a comparison: who it is for, what it contains, and why it is needed.
Previous: Unit 2 • Module 1 • Lesson 10 – Selection Sort vs Bubble Sort Compared. Next: Unit 2 • Module 2 • Lesson 02 – Software Process Models: Waterfall, Evolutionary, Reuse-Oriented and Agile.
Syllabus link: CAPE Computer Science (CXC A19/U2/21), Software Engineering (Unit 2, Module 2). Specific Objectives 1 and 2: explain the reasons for a structured approach to the software development process; describe what makes a software product well engineered (maintainability, dependability, efficiency, usability, portability and appropriate system and user documentation).
Video search terms
Search YouTube for: "what is software engineering", "software crisis explained", "Gantt chart for beginners", "software quality attributes maintainability portability".
Try it 5Quick quiz
Tap an answer. All eight questions are self-checks on this lesson.
Updates
2026/12/01
- First version of the lesson.
© 2026 islandclass.org
