Software Process Model
Unit: 6
Software Process Model (SPM)
Grade XII | Computer Science | NEB
Exam-focused notes with simple definitions, tables, examples and model questions.
Exam pattern: This unit is a favourite for both short and long questions. The most repeated ones are: SDLC and its phases, feasibility study and its types, system analyst (roles and qualities), system design tools (DFD, ER diagram, decision table, etc.), types of implementation and maintenance, and the Waterfall, Prototyping, Spiral and Agile models.
Contents
- Software project concept
- Software development process
- System Development Life Cycle (SDLC)
- Phase 1: System study
- Phase 2: System analysis and feasibility study
- Phase 3: System design and design tools
- Phase 4: System development
- Phase 5: System testing
- Phase 6: Implementation
- Phase 7: Maintenance and review
- System analyst
- Software development models
- Documentation
- Important exam questions
- Quick revision
1. Software project concept
| Term | Meaning |
|---|---|
| Instruction | A command given to the computer to perform a specific operation on given data. |
| Program | A set (sequence) of instructions written to perform a task. |
| Software | A set of programs, procedures and related documents that tell the computer what to do and how to do it. It acts as the link (interface) between the user and the computer hardware. |
| Project | A well-defined task made up of several activities carried out to achieve a goal, within a fixed time and budget. |
Software project: A software project is the complete process of developing software, from identifying the requirements to testing and maintenance. It follows a chosen method and must be completed within a fixed time and budget to produce the intended software product.
2. Software development process
Definition: The software development process is the sequence of tasks that must be carried out to build new software. The work is grouped into phases.
- A phase starts only after the previous phase is completed (in a sequential process).
- At the end of each phase a report is prepared. It describes what has been achieved and gives the plan for the next phase.
Four fundamental activities
| Activity | What it means |
|---|---|
| 1. Software specification | Decide what the software must do (functions) and the limits (constraints) it must work within. |
| 2. Software design and implementation | Design the software and write the programs so that it meets the specification. |
| 3. Software validation | Check that the software really does what the customer wants (testing). |
| 4. Software evolution | Keep changing the software to meet the customer's new needs. |
3. System Development Life Cycle (SDLC)
First, three basic terms:
- System: a set of interrelated components working together to achieve a common objective.
- Development: the step-by-step process of building or improving a system.
- Information system: a system that processes data and produces information that is useful for decision making.
SDLC: The System (or Software) Development Life Cycle is an organised, step-by-step method of planning, creating, testing and deploying a system or software. It lists all the activities needed in a fixed order, from the first idea to maintenance.
Importance (need) of SDLC
- It helps to find out the needs of the user.
- It keeps developer and user in constant communication.
- Missing requirements are identified easily.
- It ensures the software meets the user's needs.
- It supports proper analysis and design.
- It ensures proper development and testing.
- It provides documentation for future upgrade and maintenance.
- It allows new features to be added even after the software is developed.
The seven phases of SDLC
1. System study (Preliminary investigation)
↓
2. System analysis (including Feasibility study)
↓
3. System design
↓
4. System development
↓
5. System testing
↓
6. Implementation
↓
7. Maintenance and review
| Phase | Main work |
|---|---|
| System study | Understand the present system and its problems |
| System analysis | Collect detailed requirements and check feasibility |
| System design | Plan how the new system will work (logical and physical design) |
| System development | Write the programs and create the database |
| System testing | Find and remove errors |
| Implementation | Install the new system and train users |
| Maintenance and review | Keep the system working and up to date |
4. Phase 1: System study (Preliminary investigation)
The organisation decides that it needs a computer-based system. The development team studies the present (manual or computerised) system and its drawbacks. The team does three main tasks:
- Survey the system by collecting information from different sources (users, managers, records).
- Study the current system in depth and think of possible solutions.
- Select the best solution and check, through a feasibility study, whether it can be done.
5. Phase 2: System analysis and feasibility study
System analysis means breaking a system into its parts to study how those parts work together. It focuses on the business problem, not on the technology.
The development team goes back to the organisation and studies it in detail, collecting information from users, management and data-processing staff. The system analyst then prepares the specification of the new system:
- Goals and objectives of the proposed system
- Fundamental actions the software must perform
- Outputs to be produced
- Inputs to be used
- Processes to be performed
- Interfaces to be provided
- Performance requirements to be met
- Organisational and other constraints
Feasibility study
Feasibility study checks the proposed system from different angles to find out how practical and useful it will be, and whether it is worth developing. It is done before system design.
Need of a feasibility study
- It checks whether the system meets the client's goals.
- It shows the strengths and limitations before development starts.
- It defines the boundary (scope) of the system.
- It can suggest new opportunities.
- It gives quality information for decision making.
- It provides documentation of the investigated system.
Types (levels) of feasibility
| Type | What it checks |
|---|---|
| Economic | Is it cost-effective? Compares development and operating cost with the benefits (cost-benefit analysis). |
| Technical | Are the required hardware, software and technical skills available? |
| Operational | Will the system work smoothly in daily operation? Will users be able to use it? |
| Behavioural | How will users and society react? Some employees resist change to a new system. |
| Schedule (time) | Can the project be completed on time? Splits the project into tasks and estimates the time for each. |
| Legal | Does the system follow the law (copyright, tax, trade and other laws)? |
Some books also list social feasibility (will people accept it?) and management feasibility (will management accept it?). Learn the six above first, and add these two if your teacher asks for them.
6. Phase 3: System design and design tools
System design plans how the new system will work. It includes the design of input, output, files (database), processing and the general program design. It has two parts:
| Logical design | Physical design | |
|---|---|---|
| Meaning | The theoretical design of the system based on the requirements: what the system will do. | Converting the logical design into detailed, technical form: how the system will do it. |
| Level | General and simple | Detailed and technical |
| Tools used | Context diagram, DFD, ER diagram | Algorithm, flowchart, pseudo code, decision table, decision tree |
System design tools
Tools used to design a system during analysis and design are called system design tools.
1. Algorithm
An algorithm is a finite sequence of steps (instructions) for solving a problem.
Example: decide Pass or Fail
- Start
- Read marks
- If marks are 40 or more, print "Pass", otherwise print "Fail"
- Stop
2. Flowchart
A flowchart is the picture (diagram) form of an algorithm. It is of two types:
- System flowchart: shows how data moves between the main components of a system (people, files, programs, reports).
- Program flowchart: shows the step-by-step logic of one program to solve a problem.
| Symbol shape | Name | Use |
|---|---|---|
| Oval | Terminal | Start or end |
| Rectangle | Process | Calculation or action |
| Parallelogram | Input / Output | Reading or printing data |
| Diamond | Decision | Yes/No question with two ways out |
| Circle | Connector | Joins parts of a flowchart |
| Arrow | Flow line | Shows direction of flow |
3. Pseudo code
Pseudo code is an algorithm written in simple English-like statements, mixed with programming-style keywords. It is not tied to any particular language.
START
INPUT marks
IF marks >= 40 THEN
PRINT "Pass"
ELSE
PRINT "Fail"
END IF
STOP
4. Data Flow Diagram (DFD)
A DFD is a logical diagram that shows how data flows between the parts of a system. It is easy to understand and shows the system more clearly than a long written description.
| Component | Symbol | Meaning |
|---|---|---|
| Process | Circle | Work done on the data (for example, "Issue membership") |
| Data store | Open-ended rectangle (two parallel lines) | Place where data is kept (a file or database) |
| Data flow | Arrow | Movement of data, with a label |
| External entity | Rectangle | Person or organisation outside the system that sends or receives data |
5. Context diagram
A context diagram is the highest-level (Level 0) DFD. It shows the whole system as a single process (one circle), with the external entities (rectangles) around it and arrows showing the data flowing in and out. Other DFDs (Level 1, Level 2) break this one process into smaller processes.
Example: Library membership
Membership application
[Applicant] ─────────────────────────▶ ( Library Membership
System )
[Applicant] ◀───────────────────────── ( )
Membership card
6. ER diagram (Entity Relationship diagram)
An ER diagram shows the logical structure of a database using pictures. It is mainly used to design databases.
| Component | Symbol | Example |
|---|---|---|
| Entity | Rectangle | Customer |
| Attribute | Ellipse (oval) | CustomerID, Name |
| Relationship | Diamond | Purchase |
| Lines | Straight lines | Connect entities, attributes and relationships |
7. Decision table
A decision table shows conditions and the actions to take for each combination of conditions, in table form.
Example: a student is eligible for the exam if attendance is at least 75% and marks are at least 40.
| R1 | R2 | R3 | R4 | |
|---|---|---|---|---|
| Conditions | ||||
| Attendance ≥ 75%? | Y | Y | N | N |
| Marks ≥ 40? | Y | N | Y | N |
| Actions | ||||
| Eligible | ✔ | |||
| Not eligible | ✔ | ✔ | ✔ |
Parts of a decision table: condition stub (list of conditions), condition entries (Y/N values), action stub (list of actions), action entries (which action to take for each rule).
8. Decision tree
A decision tree shows the same conditions and actions in the shape of a tree.
Attendance >= 75% ?
├── Yes → Marks >= 40 ?
│ ├── Yes → Eligible
│ └── No → Not eligible
└── No → Not eligible
9. CASE tools
CASE (Computer-Aided Software Engineering) tools are computer programs that help in the work of software development. They help in analysis, design, coding, testing and maintenance. They are fast and especially useful for large projects.
10. UML
UML (Unified Modeling Language) is a standard modelling language with a set of graphic notations used to draw visual models of software, especially object-oriented software. It is maintained by the Object Management Group (OMG).
7. Phase 4: System development
The logical and physical design is converted into a working system:
- The design (flowcharts, algorithms, pseudo code) is converted into programs using a suitable high-level language.
- The database is created.
- User (operational) documents are written.
- Users are trained.
- The internal documentation of the system is prepared.
8. Phase 5: System testing
Testing is the process of checking the software to find errors and to confirm that it works as the user expects. It gives stakeholders information about the quality of the product and the risks of using it.
| White box testing | Black box testing | |
|---|---|---|
| Idea | Tester can see the internal code and logic | Tester cannot see the code; only inputs and outputs are checked |
| What is tested | Logical paths, conditions and loops inside the program | Whether the software gives correct output for given input |
| Also called | Structural / glass box testing | Functional testing |
| Methods | Testing all paths, conditions and loops | Equivalence partitioning, boundary value analysis |
| Done by | Usually programmers | Usually testers or users |
9. Phase 6: Implementation
Implementation means putting the tested system into real use. It includes installing the system, changing over from the old system to the new one, training users and solving any problems found in testing.
Types of implementation (conversion)
| Type | How it works | Speed / cost | Risk |
|---|---|---|---|
| Direct | The old system is stopped and the new system starts at once. | Fast and cheap | Highest risk |
| Parallel | Old and new systems run together until the new one works smoothly. | Slow and costly | Safest |
| Phased | The new system is introduced part by part (module by module). Works only if the system can be divided into parts. | Medium | Low risk |
| Pilot | One site or department uses the new system first; then the whole organisation switches. | Takes more time | Low risk, good for big organisations |
10. Phase 7: Maintenance and review
Maintenance starts after the system is implemented. Like any machine, a system gets old and needs regular care of both hardware and software. A review checks the objectives achieved, cost, performance, standards, and gives recommendations.
Types of maintenance
| Type | Purpose |
|---|---|
| Corrective | Fixes errors (bugs) found while the system is running. |
| Adaptive | Changes the system to suit a new environment or adds new features. |
| Perfective | Improves the system's performance and makes it more up to date, which increases its life. |
11. System analyst
System analyst: A system analyst is a person who studies, designs, implements and evaluates computer-based information systems to support the decisions and operations of an organisation. He or she studies the problem, finds the objectives and decides the procedure to achieve them. The analyst works as a link between users and programmers.
Qualities (skills) of a good system analyst
- Knowledge of and commitment to the organisation
- People (interpersonal) skills
- Conceptual (thinking) skills
- Technical skills
Characteristics (attributes)
- Knowledge of the organisation
- Technical knowledge
- Interpersonal and communication skills
- Character and ethics
- Problem-solving skill, in five steps: define the problem, analyse the problem, think of many alternatives, evaluate the alternatives, choose the best alternative
- System analysis and design skills
Roles of a system analyst
| Role | Meaning |
|---|---|
| Change agent | Helps the organisation accept and adopt change. |
| Investigator and monitor | Finds facts about the existing system and watches progress. |
| Architect | Designs the structure of the new system. |
| Psychologist | Understands the needs and feelings of users. |
| Motivator | Encourages users and team members to accept and use the system. |
| Intermediary (diplomat) | Acts as a link between users, management and programmers. |
Duties and responsibilities
- Defining requirements
- Prioritising requirements
- Analysis and evaluation
- Solving problems
- Preparing the functional specification
- Designing the system
- Evaluating the system
12. Software development models
A software process model is a framework that shows the order of activities used to develop software. Different models suit different projects, and the system analyst chooses the one that best fits the project.
12.1 Waterfall model
The Waterfall model is the oldest model. It is linear and sequential: work flows downward from one stage to the next, like a waterfall, and each stage is completed before the next begins.
Requirements analysis and definition
↓
System design
↓
Development (coding)
↓
Integration and system testing
↓
Operation and maintenance
| Stage | Work done |
|---|---|
| Requirements analysis and definition | Find the actual requirements of the problem. |
| System design | Divide the requirements into hardware and software parts and design the system. |
| Development | Convert the design into programs. |
| Integration and testing | Join the program units and test the complete system. |
| Operation and maintenance | Install the system; correct errors found later and add improvements. |
| Advantages | Disadvantages |
|---|---|
| Simple and easy to understand | No going back; hard to change earlier stages |
| Suitable for small projects with clear requirements | Not suitable for large projects or changing requirements |
| Less expensive | Working software appears only at the end |
| Each stage has clear results and documents | Errors found late are costly to fix |
12.2 Prototyping model
The Prototyping model builds a small working sample (prototype) of the system first. It is used when the user does not have a clear idea about requirements, inputs and outputs. The prototype is improved again and again until the user is satisfied.
Steps
- Identify user needs: the analyst talks to the user to learn the basic requirements.
- Develop a prototype: a quick, simple working model is built.
- User evaluation: the user tries the prototype and gives feedback.
- Refine the prototype: the prototype is modified using the feedback. Steps 3 and 4 repeat until the user is satisfied.
- Final system: the accepted prototype becomes (or is used to build) the final system.
| Advantages | Disadvantages |
|---|---|
| Users understand the system better | May lead to a "build and fix" way of working |
| Errors are found early | Scope may grow beyond the original plan, increasing complexity |
| Quick user feedback gives better solutions | Can take more time and cost if users keep changing demands |
12.3 Spiral model
The Spiral model shows the process as a spiral with many loops, not as a straight line. It combines ideas of the Waterfall and Prototyping models and adds risk analysis. It is meant for large, costly and complex projects. Each loop starts near the centre and moves outward as the project grows and matures.
Each loop (cycle) has four parts:
| Part | Work done |
|---|---|
| 1. Planning | Set the objectives, find alternatives and limits for this loop; plan the next phase. |
| 2. Risk analysis | Study each identified risk in detail and take steps to reduce it. For example, if the requirements are unclear, build a prototype. |
| 3. Engineering (development) | After the risks are evaluated, choose a development model and build and test that part of the product. |
| 4. Evaluation | The user evaluates the result. The project is reviewed and a decision is made whether to continue with another loop. |
| Advantages | Disadvantages |
|---|---|
| Strong risk handling | Risk analysis needs skilled experts |
| Good for large and complex projects | Costly and complicated to manage |
| Changes can be added in later loops | Not suitable for small projects |
| Users see the product early and often | Success depends heavily on risk analysis |
12.4 Agile software development
Agile development is a method based on iterative and incremental development. The software is built in many short cycles (often 1 to 4 weeks). Requirements and solutions grow through close teamwork between self-organising, cross-functional teams and the customer.
Key ideas
- Small working parts of the software are delivered frequently.
- The customer takes part throughout the project.
- Changes in requirements are welcomed, even late in development.
- Individuals and teamwork are valued more than rigid process and heavy documents.
| Advantages | Disadvantages |
|---|---|
| Quick delivery of working software | Hard to predict final cost and time |
| Easily adapts to change | Needs constant customer involvement |
| Customer feedback at every cycle | Less documentation may cause problems later |
| Suits small and medium projects and fast-changing needs | Needs experienced, well-coordinated teams |
Comparison of the four models
| Model | Best used when | Main feature |
|---|---|---|
| Waterfall | Requirements are clear and fixed; small project | Linear, one stage after another |
| Prototyping | Requirements are unclear | Build a sample, improve with feedback |
| Spiral | Large, risky, complex project | Repeated loops with risk analysis |
| Agile | Requirements change often; fast delivery needed | Short cycles, teamwork, customer involvement |
13. Documentation
Documentation is the process of collecting, organising, storing and maintaining a complete record of the system and of the documents prepared during all phases of the life cycle.
It includes the software requirement specification, feasibility report, design report, description of input, output and processing, source code with comments, manuals, guides and help desk support.
| Internal documentation | External documentation | |
|---|---|---|
| Used by | System analysts and programmers | End users |
| Used when | During development and later for modification and maintenance | While running and using the software |
| Contents | Source code comments, design documents, flowcharts, program descriptions | User manuals, guides, help files, tutorials |
| Purpose | Helps understand how the software is built | Helps understand how to use the software |
14. Important exam questions
Try each question yourself first, then check the hint.
Q1. What is SDLC? Explain its phases. (6 marks) Define SDLC, then explain the seven phases in order using the table in Section 3 and the details in Sections 4 to 10. Draw the phase flow if time allows.
Q2. What is a feasibility study? Explain its types. (5 marks) Define it and write the need. Explain economic, technical, operational, behavioural, schedule and legal feasibility in one or two lines each.
Q3. Who is a system analyst? Write his or her roles and qualities. (5 marks) Use Section 11: definition, skills, six roles and key duties.
Q4. Differentiate between logical design and physical design. (3 marks) Use the table in Section 6.
Q5. Explain the Waterfall model with its advantages and disadvantages. (5 marks) Draw the five-stage flow, describe each stage briefly, then give two advantages and two disadvantages. Do the same for the Prototyping and Spiral models.
Q6. Differentiate between Waterfall and Prototyping (or Spiral) model. (4 marks) Compare: flow of work, user involvement, handling of changes, risk, suitable project size.
Q7. Explain the types of implementation (conversion). (4 marks) Direct, parallel, phased, pilot, each with one line on how it works and its risk or cost.
Q8. Explain the types of maintenance. (3 marks) Corrective, adaptive and perfective, with the purpose of each.
Q9. Differentiate between white box and black box testing. (3 marks) Use the table in Section 8.
Q10. Write short notes on: (a) DFD (b) ER diagram (c) Decision table (d) Context diagram (e) Documentation. (2 to 4 marks each) Give the definition, components or symbols, and a small example where possible.
Q11. What is documentation? Explain its types. (3 marks) Define it, then explain internal and external documentation.
Q12. Why is SDLC necessary? (3 marks) Write any four points from "Importance (need) of SDLC" in Section 3.
15. Quick revision
| Term | One-line meaning |
|---|---|
| SDLC | Step-by-step method of developing a system, from study to maintenance |
| Feasibility study | Checking whether a proposed system is practical and worth building |
| Logical design | What the system will do (theory) |
| Physical design | How the system will do it (technical detail) |
| DFD | Diagram showing the flow of data in a system |
| Context diagram | Level 0 DFD with the whole system as one process |
| ER diagram | Diagram of entities, attributes and relationships for a database |
| Decision table | Table of conditions and actions |
| White box testing | Testing with knowledge of internal code |
| Black box testing | Testing only inputs and outputs, without seeing the code |
| Direct / Parallel / Phased / Pilot | The four types of implementation |
| Corrective / Adaptive / Perfective | The three types of maintenance |
| Waterfall | Linear, one stage after another |
| Prototyping | Build a sample first, improve with feedback |
| Spiral | Repeated loops with risk analysis |
| Agile | Short cycles with customer teamwork |
| Internal / External documentation | For developers / for users |
Prepared for Grade XII Computer Science (NEB). Always cross-check with the latest syllabus and textbook issued by the Curriculum Development Centre (CDC).