CS24353 • MODULE 2

Module 2: Software Requirements Engineering & SRS Standards

Topics 15 to 26 • Functional/Non-Functional Requirements, FURPS+, TELOS Feasibility, IEEE 830 SRS & RTM

Author: Shaswat Raj (BIT Mesra) Academic Year: 2024–25 (5th Sem CSE) Standard: IEEE & ISO/IEC Standards

Topic 7: The Requirements Engineering Lifecycle

Requirements Engineering (RE) is the systematic process of discovering, analyzing, documenting, and maintaining software requirements throughout the project lifecycle. The cost of fixing a requirements error escalates exponentially across subsequent phases:

$$\mathbf{\text{Relative Cost: Requirements (1x)} \rightarrow \text{Design (5x)} \rightarrow \text{Coding (10x)} \rightarrow \text{Testing (20x)} \rightarrow \text{Post-Release (100x–200x)!}}$$

The 5 Core Phases of Requirements Engineering

  1. Feasibility Study: Assesses whether the proposed system is viable technically, economically, and operationally.
  2. Requirements Elicitation: Gathers customer and user needs through interactive fact-finding techniques.
  3. Requirements Analysis & Modeling: Resolves ambiguities, boundary conflicts, and overlaps using structured models.
  4. Requirements Specification: Formally documents the functional and non-functional requirements in an SRS.
  5. Requirements Validation & Management: Validates requirements with stakeholders and manages change requests via a Requirements Traceability Matrix (RTM).

Topic 8: Functional vs. Non-Functional Requirements & The FURPS+ Framework

Category Definition & Scope Concrete Industry Examples
Functional Requirements (FR) Specifies the exact behavioral services and computational functions the system must perform (What the system does). • "The system shall calculate compound interest using formula $A = P(1 + r/n)^{nt}$."
• "The system shall generate PDF invoices upon successful Stripe payment."
Non-Functional Requirements (NFR) Specifies systemic quality attributes, performance bounds, security constraints, and operational standards (How well it performs). • "The system shall maintain $99.99\%$ monthly availability."
• "API response latency shall not exceed $200\text{ms}$ at $10,000$ concurrent requests."
📐 The FURPS+ Quality Attribute Taxonomy (Hewlett-Packard)

Topic 9: Feasibility Analysis — The TELOS Framework

DimensionEvaluation CriteriaQuantitative Analytical Techniques
T — TechnicalCan the system be constructed with available hardware, software stacks, and engineering skills?Proof-of-concept prototyping, technology risk scoring.
E — EconomicIs the financial return on investment sufficient to justify capital expenditure?Cost-Benefit Analysis (CBA), Net Present Value (NPV), ROI, Payback Period.
L — LegalDoes the project comply with intellectual property laws, data privacy, and industry regulations?Compliance audits (GDPR, SOC2, HIPAA, PCI-DSS).
O — OperationalWill the end-users embrace the software within existing organizational workflows?Change management assessments, user resistance surveys.
S — ScheduleCan the project meet strict market windows or hard statutory deadlines?PERT schedule variance analysis, critical path evaluation.
🏛️ Solved Numerical 2: Economic Feasibility — Net Present Value (NPV) Calculation

A software project requires an initial development investment of $I_0 = \$100,000$. It generates annual net cash inflows of $C_1 = \$40,000, C_2 = \$50,000, C_3 = \$50,000$ over 3 years at a discount rate of $r = 10\%$ ($0.10$):

$$\mathbf{\text{NPV} = \sum_{t=1}^n \frac{C_t}{(1 + r)^t} - I_0}$$ $$\mathbf{\text{Conclusion: Since } \text{NPV} > 0 \implies \mathbf{\text{Project is Economically Feasible \& Approved!}}}$$

Topic 10: Requirements Elicitation Techniques

Topic 11: IEEE 830-1998 Standard for SRS Structure

📋 Standard IEEE 830 SRS Document Hierarchy
  1. 1. Introduction:
    • 1.1 Purpose (Audience and document objectives)
    • 1.2 Scope (Product name, benefits, and boundary limitations)
    • 1.3 Definitions, Acronyms, and Abbreviations
    • 1.4 References (Standards, project artifacts)
    • 1.5 Overview (Document structure)
  2. 2. Overall Description:
    • 2.1 Product Perspective (System context diagram, external interfaces)
    • 2.2 Product Functions (High-level functional summary)
    • 2.3 User Characteristics (Educational level, technical expertise)
    • 2.4 General Constraints (Regulatory, hardware limits)
    • 2.5 Assumptions and Dependencies
  3. 3. Specific Requirements: (Exhaustive detailed functional requirements, UI/hardware/software interfaces, database schema constraints, performance metrics, security encryption standards).

Topic 12: 9 Characteristics of a Good SRS (C-U-C-C-V-F-T-P-M)

Quality AttributeEngineering Meaning & Verification Method
1. CorrectEvery stated requirement accurately reflects true real-world user needs.
2. UnambiguousEvery requirement statement possesses exactly one possible interpretation (Zero vagueness: avoid words like "user-friendly", "fast").
3. CompleteIncludes all essential capabilities, boundary conditions, error responses, and default states (No `TBD` sections).
4. ConsistentContains zero internal contradictions between conflicting requirement specifications.
5. Verifiable (Testable)There exists a finite, cost-effective automated or manual test case that can definitively prove requirement satisfaction.
6. ModifiableStructured with unique numbering and cross-references so changes can be made without cascading errors.
7. TraceableEach requirement has a unique identifier linked backward to business goals and forward to design modules and test cases.
8. PrioritizedRanked by customer importance and technical stability (e.g., MoSCoW: Must-have, Should-have, Could-have, Won't-have).
9. FeasibleAchievable within system constraints, available budget, and technological capabilities.

Topic 13: University Exam Problem Bank & Model Answers

Q4. What is a Requirements Traceability Matrix (RTM)? Explain Forward and Backward Traceability with an Example Table. (8 Marks)
An RTM is a grid mapping requirements across all SDLC artifacts to guarantee full requirement fulfillment.
• Forward Traceability: Tracks each requirement forward into design components, source code classes, and test cases (ensures no requirement is forgotten).
• Backward Traceability: Tracks each test case and source code module backward to its originating requirement (prevents "gold plating" or building features nobody asked for!).
Req IDRequirement DescriptionArchitecture ComponentSource Code FileTest Case ID
REQ-101User password reset via OTPAuthService.java/auth/PasswordReset.javaTC-AUTH-01, TC-AUTH-02
REQ-102PDF Invoice GenerationBillingModule.java/billing/PdfGenerator.javaTC-BILL-05
Q5. Explain Why Ambiguous Terms in SRS Lead to Software Failure and How to Make Non-Verifiable Requirements Verifiable. (8 Marks)
Ambiguous terms lack quantitative boundaries, preventing quality assurance engineers from creating definitive pass/fail test cases.
• Non-Verifiable Bad Requirement: "The website shall load quickly and be user-friendly." (Subjective; impossible to test mathematically).
• Verifiable Good Requirement: "The web portal home page shall render the First Contentful Paint (FCP) within $1.5\text{ seconds}$ on a $4\text{G}$ mobile connection for $95\%$ of global users, and achieve a System Usability Scale (SUS) score $\ge 80/100$ in usability testing."

Topic 24: Quality Function Deployment (QFD) & The House of Quality

QFD (Yoji Akao) is a structured technique that translates customer desires ("Voice of the Customer") directly into actionable software engineering requirements:

QFD Requirement CategoryCustomer Expectation ProfileSystem Behavior & Satisfaction Impact
1. Normal RequirementsExplicitly requested in customer meetings.Customer is satisfied if present, dissatisfied if absent (e.g., Search filter).
2. Expected RequirementsImplicit baseline capabilities assumed without asking.Customer takes them for granted; absence causes catastrophic dissatisfaction (e.g., Data encryption, crash resilience).
3. Exciting RequirementsUnexpected, innovative delightful features.Absence causes zero complaint; presence creates immense customer delight and market differentiation (e.g., AI auto-completion).

Topic 25: Class-Responsibility-Collaborator (CRC) Cards

CRC Modeling (Beck & Cunningham) provides an agile, physical index-card method for discovering object-oriented requirements:

📋 Structure of a Standard 4x6 CRC Card
🏛️ Solved Numerical 8: Payback Period & Return on Investment (ROI)

An automated testing framework costs $\$60,000$ to engineer. It generates recurring annual QA labor savings of $\$25,000/\text{year}$ over a 4-year lifecycle:

Topic 26: University Exam Problem Bank (Part II)

Q14. Explain the Delphi Method for Requirements Prioritization and Consensus Building. (8 Marks)
The Delphi Method achieves objective consensus among domain experts without peer pressure or dominance bias:
1. A facilitator circulates anonymous requirement ranking questionnaires to all distributed experts.
2. Experts independently assign priority scores and provide written justifications.
3. Facilitator compiles statistical summary (median and interquartile range) and redistributes it anonymously.
4. Experts review collective results and adjust their rankings over 2–3 iterative rounds until variance stabilizes into strong group consensus!
Q15. Explain Formal Methods in Requirements Engineering and the Role of Z-Notation. (8 Marks)
Formal Methods utilize mathematical discrete structures (first-order predicate logic, set theory) to specify software requirements with zero ambiguity.
• Z-Notation: Encapsulates system states and operations inside graphical formal boxes called Schemas. Each schema specifies State Invariants, Pre-conditions (what must hold before operation), and Post-conditions (what is guaranteed after operation: $x' = x + 1$). Essential for safety-critical systems (nuclear reactor controllers, pacemaker firmware).

Topic 27: Non-Functional Requirements (NFR) Framework & Softgoal Interdependency

The Chung et al. NFR Framework models non-functional requirements as Softgoals that are "satisficed" rather than strictly satisfied:

🏛️ Solved Numerical 12: Requirements Prioritization via Analytical Hierarchy Process (AHP)

Compare 3 Requirements ($R_1, R_2, R_3$) in a Pairwise Comparison Matrix $\mathbf{A}$ where $R_1$ is $3\times$ more important than $R_2$, and $R_1$ is $6\times$ more important than $R_3$:

$$\mathbf{A} = \begin{bmatrix} 1 & 3 & 6 \\ 1/3 & 1 & 2 \\ 1/6 & 1/2 & 1 \end{bmatrix} \implies \text{Normalized Weight Vector } \mathbf{W} = \begin{bmatrix} \mathbf{0.667 \ (66.7\%)} \\ \mathbf{0.222 \ (22.2\%)} \\ \mathbf{0.111 \ (11.1\%)} \end{bmatrix}$$ $$\mathbf{\text{Priority Order: } R_1 \text{ (Must-Have)} \gg R_2 \text{ (Should-Have)} \gg R_3 \text{ (Could-Have)}}$$

Topic 28: Formal Specifications in Safety-Critical Systems

Formal methods use discrete mathematics to prove program correctness before code generation:

📋 Model-Based vs. Property-Based Formal Specifications
🏛️ Solved Problem 16: Z-Schema for Online Library Borrowing Transaction
┌─── BorrowBook ──────────────────────────┐
│ Δ LibraryState                          │
│ user? : UserID                          │
│ book? : BookID                          │
├─────────────────────────────────────────┤
│ user? ∈ RegisteredUsers                 │
│ book? ∈ AvailableBooks                  │
│ #(BorrowedBooks ▷ {user?}) < MaxLimit  │
│ AvailableBooks' = AvailableBooks \ {book?}│
│ BorrowedBooks' = BorrowedBooks ∪ {(book?, user?)}│
└─────────────────────────────────────────┘

Verification: Guaranteed to prevent exceeding checkout limits or borrowing unavailable books by mathematical proof!

🏛️ Solved Problem 21: Quality Function Deployment (QFD) Customer Importance Weighting

In a QFD House of Quality matrix, customer requirements ($CR_1$: Fast Search, $CR_2$: Data Security) have weights $W = [8, 10]$. Technical metrics ($TC_1$: Query Cache, $TC_2$: 256-Bit SSL) have relationship scores $R = [[9, 1], [3, 9]]$:

🏛️ Solved Problem 22: Requirements Change Impact Assessment Metric

For a proposed change impacting 4 classes in a 40-class system: $\text{Impact Ratio} = \frac{4}{40} = \mathbf{10.0\%}$. Change is classified as Moderate Impact and approved by CCB!

🏛️ Solved Problem 30: Use Case Modeling & Boundary Conditions in E-Commerce

Construct a complete Use Case Specification table for `Process Checkout`:

FieldSpecification Description
Use Case IDUC-CHK-01
Primary ActorAuthenticated Registered Customer
Pre-ConditionsCustomer cart contains $\ge 1$ available in-stock item; customer is logged in.
Main Success Scenario1. Customer reviews cart. 2. Enters shipping address. 3. Selects payment method. 4. Authorizes charge. 5. System generates order ID and triggers PDF receipt email.
Extensions (Exception)4a. Card authorization fails $\implies$ Prompt customer to retry with secondary payment method.
Post-ConditionsInventory reserved, credit card charged, order record persisted in database.
🏛️ Solved Problem 31: Requirements Change Control Board (CCB) Formal Workflow
$$\text{Change Request (CR)} \xrightarrow{\text{Impact Analysis}} \text{CCB Review} \xrightarrow{\text{Approved}} \text{Baseline Updated} \xrightarrow{\text{RTM Modified}} \text{Engineering}$$
🏛️ Solved Problem 40: Software Requirements Inspection Checklist & Defect Classification

Classify requirements defects using IEEE standards:

🏛️ Solved Problem 41: Object-Oriented Requirements Domain Modeling

In a University Course Registration domain: Extract entities (`Student`, `CourseOffering`, `Professor`, `Transcript`) and establish multiplicity constraints: A Student registers for $3..6$ CourseOfferings; a CourseOffering is taught by exactly $1$ Professor!

🏛️ Solved Problem 50: Use Case Point (UCP) Estimation Method (Gustav Karner)

In Use Case Point analysis:

🏛️ Solved Problem 51: Requirements Completeness Verification Matrix

In an ATM system specification: For every valid pin state, verify that all three failure conditions (Wrong PIN, Expired Card, Network Timeout) have explicit state transitions and localized error dialog prompts!

🏛️ Solved Problem 60: Requirements Volatility Index (RVI) Metric

If $R_{\text{initial}} = 80$, $R_{\text{added}} = 12$, $R_{\text{modified}} = 8$, and $R_{\text{deleted}} = 4$:

$$\mathbf{\text{RVI} = \frac{R_{\text{added}} + R_{\text{modified}} + R_{\text{deleted}}}{R_{\text{initial}}} \times 100\% = \frac{12 + 8 + 4}{80} \times 100\% = \frac{24}{80} \times 100\% = \mathbf{30.0\%}}$$

An RVI $> 20\%$ signals high requirement volatility, requiring agile iterative planning rather than fixed-price waterfall contracts!

🏛️ Solved Problem 61: IEEE 830 Section 3 Software Interfaces Specification

Specify exact communication protocols, endpoints, payload formats (`application/json`), TLS 1.3 encryption, and error status codes (`400 Bad Request`, `401 Unauthorized`, `500 Server Error`) for zero interface mismatch!

🏛️ Solved Problem 69: Requirements Elicitation Cognitive Biases

Identify and mitigate cognitive biases in stakeholder interviews: (1) Availability Heuristic (users request features based on recent memorable outages), (2) Anchoring Bias (over-weighting the initial executive suggestion), (3) Confirmation Bias (analysts only hearing feedback supporting their pet architecture)!

🏛️ Solved Problem 70: Use Case Generalization vs Extension

`Make Payment` is a generalized base use case specialized by `Make Credit Card Payment` and `Make Crypto Payment` via standard object-oriented polymorphism!

🏛️ Solved Problem 79: Natural Language Requirements Ambiguity Patterns

Identify 4 common ambiguity pitfalls: (1) Vague Adverbs ("rapidly"), (2) Loophole Conditionals ("as far as possible"), (3) Passive Voice ("the password shall be hashed" $\implies$ by client or server?), (4) Compound Conjunctions ("A and B or C" $\implies$ $(A \land B) \lor C$ vs $A \land (B \lor C)$)!

🏛️ Solved Problem 80: User Stories INVEST Criteria
$$\mathbf{\text{I — Independent • N — Negotiable • V — Valuable • E — Estimable • S — Small • T — Testable}}$$
🏛️ Solved Problem 81: Requirements Traceability Forward and Backward Audit

In a Medical Device audit: Verify that $100\%$ of safety requirements in SRS map forward to verified unit tests and hazard mitigation code modules with zero orphan code!

🏛️ Solved Problem 93: Requirements Elicitation via User Personas

Construct realistic user personas (e.g., "Dr. Priya, Senior Radiologist, needs 1-click DICOM export within 2 seconds") to ground abstract requirements in real clinical workflows!

🏛️ Solved Problem 94: Requirements Prioritization via Kano Model

• Must-Be: Core features users expect (login).
• One-Dimensional: Customer satisfaction scales linearly with performance (search speed).
• Attractive / Delighters: Innovative features creating high delight (AI instant summary)!

🏛️ Solved Problem 95: Formal Verification of Requirements Consistency

Using SAT solvers (Z3) to mathematically prove that a set of 500 security rules contains zero mutually contradictory assertion deadlocks!

🏛️ Solved Problem 107: Non-Functional Security Requirements Specification (OWASP ASVS)

Specify application security verification standards: Rate limiting ($100 \text{ req/min/IP}$), AES-GCM-256 at-rest database encryption, Argon2id password hashing, and zero raw PII in application debug logs!

🏛️ Solved Problem 108: Requirements Traceability Forward/Backward Audit Checklist

Audit matrix verifying $100\%$ of customer requirements have assigned test cases ($\ge 1$ pass/fail test per FR) and zero untested orphaned source code classes!

🏛️ Solved Problem 109: System Architecture Boundary Definition in SRS

Explicitly delineate external third-party boundaries: Stripe Payment Gateway, Twilio SMS API, and AWS S3 Storage Interfaces with timeout fallback rules!

🏛️ Solved Problem 121: Requirements Elicitation via Ethnographic Work Observation

Shadowing air traffic controllers in live radar rooms to discover unstated cognitive overload bottlenecks during multi-aircraft conflict resolution!

🏛️ Solved Problem 122: Software Requirements Ambiguity Scoring & Defect Removal

Using natural language processing rule checkers to flag non-quantifiable adjectives ("efficient", "flexible", "intuitive") and auto-prompting requirement authors for quantitative bounding metrics!

🏛️ Solved Problem 129: Requirements Elicitation via Brainstorming vs Nominal Group Technique (NGT)

• Brainstorming: Unconstrained rapid generation of ideas without initial critique.
• NGT: Structured 4-phase technique (Silent idea generation $\rightarrow$ Round-robin recording $\rightarrow$ Group discussion $\rightarrow$ Anonymous mathematical voting), eliminating dominant stakeholder bias and yielding objective requirement priorities!

🏛️ Solved Problem 130: Functional Requirements CRUD Matrix Completeness Verification

In a Customer Management subsystem: Verify that for every data entity (`CustomerProfile`, `Invoice`, `CreditCard`), all 4 lifecycle operations (Create, Read, Update, Delete/Deactivate) have explicit business logic and authorization constraints!

🏛️ Solved Problem 139: Requirements Completeness Formal Proof

In a Medical Infusion Pump controller: Using model checking to verify that for every possible drug rate limit, the safety cutoff circuit is guaranteed to trigger within $50\text{ms}$ under all operational conditions!

🏛️ Solved Problem 143: Requirements Change Propagation Cost Model

Calculating the multiplier cost of requirements modification across the SDLC: $\text{Cost}(t) = C_0 e^{k t}$. A requirement defect caught in testing costs $20\times$ more to fix than during SRS inspection!

🏛️ Solved Problem 144: Formal Security Invariants Specification in Z-Notation

Mathematical proof that session tokens expire after $15\text{ minutes}$ of user inactivity and cannot be forged without cryptographic secret key!

🏛️ Solved Problem 151: Requirements Engineering for Cloud-Native Distributed Systems

Specifying multi-region active-active database replication latency bounds ($< 50\text{ms}$) and automated partition tolerance guarantees adhering to the CAP Theorem!

🏛️ Solved Problem 152: User Story Acceptance Criteria using Gherkin BDD Syntax
Feature: User Password Authentication
  Scenario: Successful login with valid credentials
    Given the user is on the login portal
    When the user enters valid email and correct password
    Then the system should issue a signed JWT token and redirect to dashboard
🏛️ Solved Problem 159: Formal Verification of Requirements Completeness via Model Checking

Using Temporal Logic (LTL/CTL) to prove that the system guarantees safety invariant $\mathbf{G}(\text{Request} \implies \mathbf{F} \text{Acknowledge})$ across all $2^{30}$ reachable execution states with zero deadlock risk!

🏛️ Solved Problem 160: Non-Functional Scalability & Latency SLA Bounds

Contractual SLA engineering: Specifying $99.999\%$ uptime (less than 5.26 minutes downtime per year) with p99 API latency bounded below $120\text{ms}$ at $50,000 \text{ QPS}$ load!