Before anything is designed, the team must know exactly what the system is for. Requirements engineering is the systematic work of finding this out.

Requirements and Their Kinds

A requirement is a condition or capability that a system must have to satisfy a user's need or a contract. Functional requirements describe what the system does, such as calculating a fee. Non-functional requirements describe its quality and constraints, such as speed, security and portability. User requirements are written for customers in plain language, while system requirements are detailed statements for developers. A requirement should be clear, complete, consistent and testable.

Definition: Requirements engineering. The systematic process of finding, analysing, documenting, validating and managing the requirements of a software system.

The Requirements Engineering Process

The process has four main parts: feasibility study, requirements elicitation and analysis, requirements specification and requirements validation, with requirements management running alongside. The activities are not strictly in sequence, and they are repeated as the understanding of the system grows. Its result is a requirements document that is agreed by the customer and the developer, and that is the basis for design.

Feasibility Study

A feasibility study is a short, focused study that decides whether the proposed system is worth building. It is done before large amounts of money are spent. It asks whether the system contributes to the aims of the organisation, whether it can be built with the available technology and within the budget, and whether it can be integrated with the other systems in use. Its findings are written in a feasibility report, which recommends either to go ahead, to change the scope, or to stop.

Kinds of Feasibility

Technical feasibility checks whether the technology and skills exist to build the system. Economic feasibility compares the costs with the benefits, using methods such as cost-benefit analysis and payback period. Operational feasibility checks whether the system will be used and will fit the way that the organisation works. Schedule feasibility checks whether the system can be delivered in time. Legal feasibility checks that the system follows the law and licences. A study is carried out by gathering information from managers and users, studying existing systems, and estimating the cost and benefits.

Table 2.1: Kinds of feasibility

Kind Question Method
Technical Can we build it? Review of technology and skills
Economic Is it worth the cost? Cost-benefit analysis
Operational Will it be used? User and management survey
Schedule Can it be done in time? Plan and estimate
Legal Is it lawful? Review of laws and contracts

Example 2.1: Cost-benefit analysis

Problem: A system costs 600000 rupees to build. It will save 250000 rupees each year in operating costs, and annual running cost is 50000. Find the payback period.

Solution:

  1. Net yearly benefit = 250000 - 50000 = 200000 rupees.
  2. Payback period = 600000 / 200000 = 3 years.

Result: The system pays back its cost in 3 years.

cost, saving, running = 600000, 250000, 50000
net = saving - running
print(net, cost / net, "years")

Output

200000 3.0 years

Common mistakes

  • Starting design without a feasibility study.
  • Looking at the cost of building only, and ignoring the cost of running and changing the system.
  • Writing requirements that cannot be tested.

Key takeaways

  • Requirements engineering finds, analyses, documents, validates and manages requirements.
  • The feasibility study decides whether the system is worth building.
  • Feasibility may be technical, economic, operational, schedule or legal.
  • Payback period = cost / net yearly benefit.

Practice questions

  1. What is a feasibility study?
  2. Name the kinds of feasibility.
  3. What does economic feasibility compare?

Answers to the practice questions

  1. A short study that decides whether a proposed system is worth building.
  2. Technical, economic, operational, schedule and legal.
  3. The costs of the system with its benefits.

Sources

  • Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit II