Module 8 · 12 marks · Design, criticality & testing
Project management, risk & quality
Software project management plans, schedules, costs and monitors work so software is delivered on time, within budget and to the required quality. It relies on CPM and PERT scheduling, risk management, effective teams, quality standards, metrics and process-maturity models such as CMMI.
Occasional 50 minSyllabus: “Software engineering foundation (management & quality)”
Mark as
The idea in one minute
Building a KSHB housing block needs a site engineer who breaks the work into tasks, knows which must wait for others (you can't plaster before the walls are up), spots the chain of tasks that decides the handing-over date, keeps a list of things that could go wrong — monsoon, cement shortage — with a plan for each, checks quality at every stage, and learns from each project to run the next one better. A software project manager does exactly the same with code instead of concrete.
Key points — the night-before list
Management activities (Sommerville): proposal writing, planning and scheduling, costing, monitoring and reviews, personnel selection and evaluation, report writing and presentations.
Milestones are end-points of activities; deliverables are results handed to the customer — every deliverable is a milestone, not vice versa. Gantt charts show time; activity networks show dependencies.
CPM: critical path = longest path, zero total float; float = LS − ES. PERT: tₑ = (a + 4m + b)/6, σ = (b − a)/6; variances add.
Risks: project, product, business. Process: identify → analyse (probability × effect) → plan (avoid, minimise, contingency) → monitor. Risk exposure RE = P × C; RMMM plan.
Teams: chief programmer (Mills/Baker), democratic/egoless (Weinberg), mixed. Communication paths n(n − 1)/2; Brooks's law — adding people to a late project makes it later.
Software project management makes sure software is delivered on time, within budget, to the required quality and in line with the organisation's goals. It is harder than managing many engineering projects because the product is intangible (progress cannot be seen, only reported), there is no standard process that fits every project, and large software projects are often one-off, so past experience transfers imperfectly.
Proposal writing — objectives, approach, cost and schedule estimates to win the work or the budget.
Project planning and scheduling — activities, milestones, deliverables, dependencies, resources.
Project costing — estimating the resources needed (see the estimation topic and the COCOMO & function points tool on this page).
Project monitoring and reviews — comparing actual progress and cost with the plan; formal reviews at milestones.
Personnel selection and evaluation — choosing and developing the team, within budget and availability constraints.
Report writing and presentations — communicating with clients, contractors and senior management.
Pressman organises management around the four P's — people, product, process and project — and quotes Boehm's W⁵HH questions as a minimal plan: Why is the system being developed? What will be done? When will it be accomplished? Who is responsible for each function? Where are they located organisationally? How will the job be done technically and managerially? How much of each resource is needed?
Project plan section (Sommerville)
Contents
Introduction
Objectives of the project, budget and time constraints
Project organisation
The team, its members and their roles
Risk analysis
Possible risks, their likelihood and risk-reduction strategies
Hardware and software resource requirements
What must be bought and when
Work breakdown
Activities, milestones and deliverables
Project schedule
Dependencies, time to each milestone, staff allocation
Monitoring and reporting mechanisms
Which reports are produced, when, and how progress is tracked
02Scheduling: WBS, milestones, Gantt charts and activity networks
Scheduling starts with a work breakdown structure (WBS) — the project divided hierarchically into deliverable-oriented pieces until each activity can be estimated, assigned and tracked (typically lasting about a week to a few weeks). For each activity the manager estimates duration and effort and records its dependencies: which activities must finish before it can start.
Milestone
The recognisable end-point of a process activity
Marked by a formal output, e.g. a report presented to management
Used internally to monitor progress
e.g. 'architecture review completed'
Deliverable
A project result delivered to the customer
Usually produced at the end of a major phase
Every deliverable is a milestone — but not every milestone is a deliverable
e.g. 'SRS v1.0 handed to KSHB', 'release 1 deployed'
Schedules are shown in two complementary ways. A Gantt chart (Henry Gantt, 1910s) is a bar chart: activities down the side, a calendar along the top and a bar for each activity's duration — easy to read, good for showing who does what when, but poor at showing dependencies. An activity network shows activities and their dependencies as a graph — activity-on-node (AON), where nodes are activities and arrows are dependencies, or activity-on-arrow (AOA), where arrows are activities and nodes are events (dummy activities may be needed). Networks make the critical path visible.
Forward pass: ES = max(EF of all predecessors) (0 for start activities)
EF = ES + duration
Backward pass: LF = min(LS of all successors) (= project end for final activities)
LS = LF − duration
Total float (slack) = LS − ES = LF − EF
Free float = min(ES of successors) − EF
Critical path = longest path through the network = activities with zero total float
Critical path method (CPM) calculations
Brooks's law
'Adding manpower to a late software project makes it later' (Fred Brooks, The Mythical Man-Month, 1975): new people need time to learn the system, and the number of communication paths grows as n(n − 1)/2. Schedules cannot be compressed indefinitely by adding staff — COCOMO's duration formula and Putnam's model say the same.
The Critical Path Method (CPM) was developed around 1957 by DuPont and Remington Rand (Kelley and Walker) for plant maintenance projects; it uses a single, deterministic duration for each activity. PERT (Program Evaluation and Review Technique) was developed in 1958 for the US Navy's Polaris missile programme to handle uncertain durations, using three time estimates per activity.
Applying CPM
List activities
Give each activity, its duration and its immediate predecessors.
Draw the network
Activity-on-node: one node per activity, arrows for dependencies.
Forward pass
Compute earliest start (ES) and earliest finish (EF) for each activity; the largest EF is the project duration.
Backward pass
Compute latest finish (LF) and latest start (LS), starting from the project duration.
Floats and critical path
Total float = LS − ES. Activities with zero float form the critical path — delay any of them and the project is delayed.
a = optimistic, m = most likely, b = pessimistic time
Expected time tₑ = (a + 4m + b) / 6
Standard deviation σ = (b − a) / 6 Variance σ² = ((b − a)/6)²
Path (project) time Tₑ = Σ tₑ along the critical path
Path variance σ²_path = Σ σ² along the critical path
Probability of finishing by T: Z = (T − Tₑ) / σ_path → look up Φ(Z)
Φ(0) = 0.50 Φ(1) ≈ 0.84 Φ(2) ≈ 0.98
PERT (based on the beta distribution; durations of different activities assumed independent)
Tip
The worked examples below compute a full CPM table for the HLAMS project and a PERT probability. Remember: shortening a non-critical activity never shortens the project; only critical activities matter — until another path becomes critical.
04Risk management
A risk is the chance that something harmful to the project will happen. Sommerville classifies risks by what they threaten: project risks threaten the schedule or resources; product risks threaten the quality or performance of the software; business risks threaten the organisation that is building or buying it.
Risk
Affects
Description
Staff turnover
Project
Experienced staff leave before the project is finished
Management change
Project
New management with different priorities
Hardware unavailability
Project
Essential hardware is not delivered on schedule
Requirements change
Project and product
Many more requirement changes than anticipated
Specification delays
Project and product
Specifications of essential interfaces are late
Size underestimate
Project and product
The size of the system has been underestimated
CASE tool underperformance
Product
Tools do not perform as expected
Technology change
Business
The underlying technology is superseded
Product competition
Business
A competing product is marketed first
The risk management process
Risk identification
List possible risks by type — technology, people, organisational, tools, requirements and estimation risks — using checklists and experience.
Risk analysis
Judge each risk's probability (very low < 10%, low 10–25%, moderate 25–50%, high 50–75%, very high > 75%) and effect (catastrophic, serious, tolerable, insignificant); produce a prioritised list.
Risk planning
For the important risks, choose avoidance strategies (reduce the probability), minimisation strategies (reduce the impact) or contingency plans (what to do if it happens).
Risk monitoring
Regularly reassess each risk and watch for its indicators (e.g. low morale, missed interface dates); update the plans.
Risk exposure RE = P × C
P = probability the risk occurs, C = cost (impact) if it occurs
Rank risks by RE; manage those above the 'cut-off line' actively.
Pressman's risk projection
Pressman distinguishes reactive risk strategies ('fire-fighting' once problems appear) from proactive ones, and records the chosen measures in an RMMM plan (Risk Mitigation, Monitoring and Management), often one risk information sheet per risk. Boehm's well-known top-ten software risks begin with personnel shortfalls, unrealistic schedules and budgets, developing the wrong functions, developing the wrong user interface, gold-plating and a continuing stream of requirement changes.
PSC favourite
Classify carefully: 'a key developer may leave' → project risk; 'the chosen database cannot meet the response-time requirement' → product risk; 'a competitor launches first' or 'the government withdraws funding' → business risk.
05Teams and people management
Team structure
Organisation
Strengths
Weaknesses
Chief programmer team (Harlan Mills; F. T. Baker, IBM, 1971–72)
A chief programmer designs and writes the critical code, supported by a backup programmer, a programming librarian and specialists — Brooks's 'surgical team'
Clear authority; few communication paths; consistent design
Depends on one outstanding person; others may feel sidelined; does not scale
Democratic / egoless team (Gerald Weinberg, 1971)
No permanent leader; decisions by consensus; code belongs to the team and is reviewed without ego
High morale; good for complex or research problems; errors found openly
Slower decisions; hard to manage in large groups
Mixed (hierarchical / controlled decentralised)
Senior engineers lead sub-groups that work democratically internally
Scales to large projects; combines control with participation
Communication across sub-groups needs care
Pressman cites Mantei's (1981) labels — democratic decentralised (DD), controlled decentralised (CD) and controlled centralised (CC) — and agile methods favour small, self-organising teams. Team size matters because the number of pairwise communication paths is n(n − 1)/2: 5 people have 10 paths, 10 people have 45.
Motivation. Sommerville uses Maslow's hierarchy of needs (1943): physiological, safety, social, esteem and self-realisation (self-actualisation). In software organisations the basic needs are usually met, so managers must satisfy social needs (time to meet colleagues), esteem needs (recognition of achievements) and self-realisation needs (responsibility, training, challenging work). Bass and Dunteman's three personality types — task-oriented (motivated by the work), self-oriented (by personal success) and interaction-oriented (by colleagues) — should be balanced in a group.
Group composition — a balance of skills, experience and personalities.
Group cohesiveness — a team spirit in which the group's goals come before individual ones; egoless programming helps.
Group communications — affected by group size, structure, composition and the physical work environment.
Group organisation — informal groups work for small, experienced teams; larger ones need hierarchy.
Tip
The People Capability Maturity Model (P-CMM) from the SEI applies the maturity-level idea to workforce practices — recruitment, training, compensation, team building.
06Quality management, standards and reviews
Quality has been defined as conformance to requirements (Crosby) and fitness for use (Juran); for software it means meeting the specified requirements and the customers' real needs and implicit expectations (maintainability, usability). Sommerville divides quality management into three activities: quality assurance — establishing the organisational framework of procedures and standards; quality planning — selecting the procedures and standards that apply to a particular project, recorded in a quality plan; and quality control — making sure the project team actually follows them.
Quality assurance (QA)
Process-oriented and preventive
Defines and improves how work is done
Standards, audits, process reviews, training
Done for the whole organisation
Quality control (QC)
Product-oriented and detective
Checks the work products themselves
Reviews, inspections, testing
Done for each project and deliverable
Standards may be product standards (document structure, coding conventions, user-interface rules) or process standards (how reviews, releases or tests are conducted). ISO 9001 — part of the ISO 9000 family, current edition 2015 — specifies requirements for a quality management system in any industry; ISO/IEC 90003 explains how to apply it to software. Certification shows that a defined quality process exists, not that the products are good. Reviews and inspections of documents and code are the main quality-control technique, alongside testing. The cost of quality splits into prevention, appraisal, internal-failure and external-failure costs — money spent on prevention reduces the far larger failure costs.
The 2023 revision of ISO/IEC 25010 has nine characteristics: it adds safety and renames usability as interaction capability and portability as flexibility.
Standard
Subject
IEEE 730
Software quality assurance plans and processes
IEEE 828
Configuration management
IEEE 829
Software and system test documentation (now ISO/IEC/IEEE 29119-3)
System, software and hardware verification and validation
IEEE 1016
Software design descriptions
IEEE 1028
Software reviews and audits
IEEE 1058
Software project management plans
IEEE 1063
Software user documentation
ISO/IEC/IEEE 12207
Software life-cycle processes
07Software metrics
A software metric is a number measured from software, its development process or its documentation. Control metrics (effort, time, defects found) support process management; predictor metrics (complexity, size) predict product qualities such as maintainability. Basili's Goal–Question–Metric (GQM) approach starts from a goal ('reduce rework'), asks questions that reveal progress ('how many defects escape to users?') and only then chooses metrics (DRE, defect density).
Metric family
Examples
Size
LOC/KLOC; function points; number of classes or methods
Control-flow complexity
McCabe cyclomatic complexity V(G) = E − N + 2P; depth of nesting
Lexical (Halstead's software science, 1977)
Vocabulary, length, volume, difficulty, effort
Information flow (Henry and Kafura, 1981)
Fan-in and fan-out of modules; HK = length × (fan-in × fan-out)²
Object-oriented (Chidamber and Kemerer, 1994)
WMC (weighted methods per class), DIT (depth of inheritance tree), NOC (number of children), CBO (coupling between object classes), RFC (response for a class), LCOM (lack of cohesion in methods)
Quality and process
Defect density, defect removal efficiency, mean time to repair, productivity (LOC or FP per person-month)
Halstead: n₁ = distinct operators, n₂ = distinct operands, N₁, N₂ = total occurrences
Vocabulary n = n₁ + n₂ Length N = N₁ + N₂
Estimated length N̂ = n₁ log₂ n₁ + n₂ log₂ n₂
Volume V = N × log₂ n Difficulty D = (n₁ / 2) × (N₂ / n₂)
Effort E = D × V Time T = E / 18 seconds
Henry–Kafura: HK = length × (fan-in × fan-out)²
PSC favourite
PSC 2024 asked the module design complexity based on information flow: Dc = size × (inflow × outflow)² — the Henry–Kafura metric. Multiplying fan-in by fan-out and squaring the product means a module that both receives and sends a lot of information is penalised heavily.
08Process improvement: CMM, CMMI and Six Sigma
The Capability Maturity Model (CMM) was developed at the Software Engineering Institute (SEI), Carnegie Mellon University, from Watts Humphrey's process-maturity framework (book 1989; CMM v1.0 1991, v1.1 1993). It describes five maturity levels, each defined by key process areas (KPAs) — 18 in all — that an organisation must master. CMMI (Capability Maturity Model Integration, v1.0 2000; v1.3 2010; v2.0 2018 and v3.0 2023 from the CMMI Institute) integrated the separate CMMs and renamed two levels.
Level
CMM name
CMMI name
Key characteristics
Typical process areas
1
Initial
Initial
Ad hoc, chaotic; success depends on individual heroics; schedules and budgets often missed
—
2
Repeatable
Managed
Basic project management; earlier successes can be repeated on similar projects
A documented organisation-wide standard process, tailored for each project
Process focus and definition, training, integrated management, product engineering, peer reviews
4
Managed
Quantitatively Managed
Detailed measures of process and product quality; processes controlled statistically
Quantitative process management, software quality management
5
Optimizing
Optimizing
Continuous process improvement from quantitative feedback and innovation
Defect prevention, technology change management, process change management
CMMI offers two representations: staged (maturity levels 1–5 for the whole organisation, as above) and continuous (a capability level for each process area — 0 Incomplete, 1 Performed, 2 Managed, 3 Defined in CMMI v1.3). Related models include ISO/IEC 15504 (SPICE) for process assessment and Humphrey's Personal and Team Software Process (PSP/TSP).
Six Sigma, introduced at Motorola in 1986, uses statistics to remove the causes of defects until a process produces at most 3.4 defects per million opportunities. Pressman describes three core steps — Define customer requirements, deliverables and goals; Measure the existing process and its output; Analyze defect metrics to find the vital few causes. An existing process then adds Improve (eliminate root causes) and Control (keep the gains) — DMAIC; a new process adds Design and Verify — DMADV.
PSC favourite
PSC 2023: the correct CMM pairing is Level 4 — Managed (in CMMI it is 'Quantitatively Managed'; CMMI's 'Managed' is level 2). PSC 2023 also asked which statement is not one of Six Sigma's three core steps: 'Improve the process' — Improve belongs to DMAIC, not to the core three (Define, Measure, Analyze).
Worked examples
Try the problem first, then reveal the working one step at a time.
EX 1Critical path for the HLAMS project
Activities (weeks, predecessors): A requirements (4, —); B architecture design (3, A); C database design (2, A); D portal UI development (5, B); E loan-module development (6, B and C); F data migration from the legacy ledger (4, C); G integration and system testing (3, D, E and F); H training and roll-out (2, G). Find ES, EF, LS, LF and floats, the critical path and the project duration.
EX 2PERT: chance of finishing the data-migration path on time
The data-migration path has three activities in sequence with estimates (a, m, b) in weeks: X extract and clean (3, 5, 13), Y transform and load (2, 4, 6), Z reconcile (1, 2, 9). Find the expected path time, its standard deviation, and the probability of finishing within 15 weeks.
EX 3Ranking HLAMS risks by exposure
Assess three risks: R1 — 40% of the 50 components planned for reuse from the State e-governance framework will need rebuilding (each ≈ 250 LOC at ₹400 per LOC), probability 0.6; R2 — a key developer leaves, impact ₹8,00,000, probability 0.3; R3 — a Government Order changes interest rules mid-project, impact ₹6,00,000, probability 0.5. Compute the risk exposures, rank them and outline an RMMM entry for the top risk.
EX 4Halstead and Henry–Kafura measures
(a) A module has n₁ = 10 distinct operators, n₂ = 8 distinct operands, N₁ = 30 operator occurrences and N₂ = 22 operand occurrences. Compute vocabulary, length, estimated length, volume, difficulty, effort and time. (b) Another module is 50 lines long with fan-in 3 and fan-out 4; compute its Henry–Kafura complexity.
Practice session
Work each problem on paper first, then check. Marking one solved earns 10 XP.0/5 solved
Q1
Activities (days, predecessors): P (3, —), Q (5, P), R (2, P), S (4, Q and R), T (6, R), U (2, S and T). Find the project duration, the critical path and the total float of R and T.
Q2
An activity has PERT estimates a = 4, m = 6, b = 14 days. Find its expected time, standard deviation and variance.
Q3
A team of 6 is 4 weeks late and the manager adds 3 more developers. How many communication paths are there before and after? Explain, using Brooks's law, why this may not help.
Q4
Name the CMM maturity level: (a) quantitative goals for process and product quality, statistical control of processes; (b) an organisation-wide standard process tailored for each project; (c) success depends on individual heroics; (d) continuous improvement through defect prevention and technology change; (e) basic project tracking lets earlier successes be repeated.
Q5
A 50-line module has fan-in 3 and fan-out 4. Compute its Henry–Kafura complexity, then recompute after a redesign reduces its fan-out to 2. By what factor did the complexity fall?
Every deliverable is a milestone, but not every milestone is a deliverable — internal milestones such as 'design review done' are not handed to the customer.
PERT: tₑ = (a + 4m + b)/6 gives the most likely value four times the weight; σ = (b − a)/6, not (b − a)/2. Add variances, not standard deviations, along a path.
The critical path is the longest path (zero total float), not the shortest. Shortening a non-critical activity never shortens the project.
Risk exposure = probability × impact. Avoidance lowers the probability, minimisation lowers the impact, and a contingency plan says what to do if the risk happens anyway.
Six Sigma's three core steps (Pressman) are Define, Measure, Analyze; Improve and Control are added for existing processes (DMAIC), Design and Verify for new ones (DMADV).
Quiz — KPSC style
10 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.
Which is a correct pairing for the SEI Capability Maturity Model (CMM)?
Past-paper questions on this topic
Modelled on real KPSC questions (reworded) with the same concept and answer; each links to its original paper.
Past papers · Question 1 of 7✓ 0 · ✗ 0
Modelled on QP 091/2022 · Instructor Gr I (Engineering Colleges) in Information Technology & Computer Engineering (23 Sept 2022), Q.79 (reworded)original paper (PDF)
Lines of code (LOC) counted for a product are which kind of software measure?