You are on page 1of 25

PREPARING FOR THE

IT2401
Fundamentals of
Software Engineering
fse@ict.cmb.ac.lk
Preparing for BIT 12/07/2001 1
Requirement Analysis and Specification

Requirement Definition

Requirement Analysis

Software Requirement
Specification

Requirement Validation
2
Requirement Types
 Functional Requirements
 Performance Requirements
 Interface Requirements
 Security Requirements
 Exceptional Requirements

3
Requirement Analysis
Techniques

 Structured Analysis Techniques


- Data Flow Diagrams (DFD)
- Entity Relationship Diagrams (ERD)

Object Oriented Analysis


- Use Case Diagrams
4
USE CASE DIAGRAM OF A LIBRARY

Search for a library item

USER
Issue an item

Reserve an item
LIBRARIAN
Return an item 5
Software Requirement Specification
(SRS)
A Document which contain specification of
 Application domain requirements
 Functional requirements
 Performance requirements
 Interface requirements
 Security requirements
 Exceptional requirements

6
Functional Requirement Specification
Techniques

 Pseudo Code
 Decision Tables
 Formal methods

7
Requirement Validation

Once the Requirements are specified,


they should be validated to make sure
that the requirements are complete and
accurate.

8
1.

During the requirement analysis stage, which of the


following requirements should be identified?

* (a) Functional requirements


* (b) Interface requirements
(c) Programming language requirement
(d) Person resource requirements
* (e) Performance requirements

9
2.
In a hotel reservation system, customers can make
reservations on line for a hotel specifying the
accommodation requirements such as room type,
duration and number of rooms. The system selects a
suitable hotel and check the availability of rooms in
that hotel. Then the system calculates the charges and
send the reservation details including the required
charges to the customer. The customer confirms the
reservation. Then the system inform about this booking
details to the hotel.
The correct context diagram of this system would be:
10
(a)

Booking details Reservation details

Hotel
Customer Reservation
System Hotel

Confirmation

11
(b)

Reservation request Confirmation

Hotel
Customer Reservation
System Hotel

Charges Booking details

12
* (c)

Reservation request Booking details

Hotel
Customer Reservation
System Hotel

Reservation details

Confirmation

13
(d)

Confirmation Reservation details

Hotel
Customer Reservation
System Hotel

Booking details Charges

14
(e)

Reservation request Booking details

Hotel
Customer Reservation
System Hotel

Confirmation Charges

15
3.
Some of the functional requirements of the hotel
reservation system would be:
(a) Cancellation of a reservation
* (b) Accept a reservation request

* (c) Calculate charges

(d) Allocation of particular rooms to a customer


* (e) Receive confirmation of reservation from the

customer.

16
4.

Decision tables are used in process


specification. Identify the correct decision
table for the functionality of the following
order processing operation.

If the customer has credit facilities accept


the order. Otherwise if the customer is a
prompt payer accept the order. New
customers are referred to the credit
manager for a decision.
17
(a)
Credit facilities Y N N

Prompt payer N Y N

New customer N N Y

Accept order X
Reject order X X
Refer to credit
manager

18
(b)
Credit facilities Y N N

Prompt payer N Y N

New customer N N Y

Accept order X X
Reject order X
Refer to credit
manager

19
(c)
Credit facilities Y N N

Prompt payer N Y N

New customer N N Y

Accept order X
Reject order X
Refer to credit X
manager

20
* (d)
Credit facilities Y N N

Prompt payer N Y N

New customer N N Y

Accept order X X
Reject order
Refer to credit X
manager

21
(e)
Credit facilities Y N N

Prompt payer N Y N

New customer N N Y

Accept order X
Reject order X
Refer to credit X
manager

22
5.
Requirement validation is an essential process which
should be carried out before proceeding to Design. The
aspects of requirements which must be checked during this
process are:
(a) validity, reusability, complexity and accuracy
(b) portability, flexibility, completeness and accuracy
* (c) validity, consistency, completeness and realism

(d) complexity, maintainability, correctness and realism


(e) validity, user friendliness, accuracy and completeness
23
6.
Which of the following are true with regard to the
requirement validation

* (a) Prototyping can be used to validate requirements


* (b) Requirement validation should be carried out after
the first requirement specification has been
carried out.
(c) Requirement validation is a process use to make
sure that the correct methods are used in the
development of the system.
24
Continued…

(d) Requirement validation is done by the


developer only.
* (e) Requirement validation should make
sure the completeness of requirements.

25

You might also like