2080 7

CSC375 ยท 2080 ยท 5 marks

What is the difference between functional and non-functional requirement? Which is more critical and why?

What is the difference between functional and non-functional requirement? Which is more critical and why? [5]

Software EngineeringChapter 4: Requirements EngineeringFunctional and Non-Functional Requirements

Quick answer

Functional Requirements define what a system or its component should do. They specify the functions, features, and behaviours that the software system must possess.

Differences Between Functional and Non-Functional Requirements

Definitions

Non-Functional Requirements define the quality attributes of a software system. They specify how the software system should fulfill the functional requirements (e.g., performance, reliability, usability).


Differences Table

Functional RequirementsNon-Functional Requirements
Defines a system or its componentDefines the quality attribute of a software system
Specifies "What should the software system do?"Specifies "How should the software system fulfill the functional requirements?"
Specified by the userSpecified by technical people
It is mandatoryIt is not mandatory
Helps to verify the functionality of softwareHelps to verify the performance of software
Usually easy to defineUsually more difficult to define

Which is More Critical and Why?

Functional requirements are more critical than non-functional requirements. The reasons are:

  1. Mandatory Nature: Functional requirements are mandatory, meaning the system cannot be accepted or delivered without fulfilling them. Non-functional requirements, while important, are not strictly mandatory.

  2. Core Purpose: Functional requirements define the very purpose of the system. If a system does not perform its intended functions (e.g., a banking system that cannot process transactions), it is completely useless regardless of how fast or secure it is.

  3. Basis for Non-Functional Requirements: Non-functional requirements only make sense in the context of functional requirements. A system must first do something before we can measure how well it does it.

  4. User Specification: Functional requirements are specified directly by the user, reflecting the actual needs the system must meet. Satisfying the user's core needs is the primary goal of software development.

Note: However, in safety-critical systems (e.g., nuclear power plants, aviation), non-functional requirements such as reliability and safety can become equally or even more critical, since failure can cost lives.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.