Software Engineering Lab File
Software Engineering Lab File
Software Engineering Lab File
SUBMITTED TO : SUBMITTED BY :
MS. ARCHANA SINGH VANSHIKA GUPTA
(ASST. PROF. 2100010100055
CSE DEPARTMENT) B.TECH 3RD YEAR CSE.
Submitted By:
Software Engineering Lab File
Introduction
Requirements identification is the first step of any software development project. Until the
requirements of a client have been clearly identified, and verified, no other task (design, coding,
testing) could begin. Usually business analysts having domain knowledge on the subject matter
discuss with clients and decide what features are to be implemented.
In this experiment we will learn how to identify functional and non-functional requirements from a
given problem statement. Functional and non-functional requirements are the primary components
of a Software Requirements Specification.
Objectives
Requirements
Sommerville defines "requirement" [1] asa specification of what should be implemented.
Requirements specify how the target system should behave. It specifies what to do, but not how to
do. Requirements engineering refers to the process of understanding what a customer expects
from
the system to be developed, and to document them in a standard and easily readable and
understandable format. This documentation will serve as reference for the subsequent
design, implementation and verification of the system.
It is necessary and important that before westart planning, design and implementation of the
software system for our client, we are clear about it's requirements. If we don't have a clear vision
of what is to be developed and what all features are expected, there would be serious problems,
and
customer dissatisfaction as well.
Characteristics of Requirements
• Unambiguity: There should not be any ambiguity what a system to be developed should do.
For example, consider you are developing a web application for your client. The client requires
that enough number of people should be able to access the application simultaneously.
What's the "enough number of people"? That could mean 10 to you, but, perhaps, 100 to the
client.
There's an ambiguity.
• Consistency: To illustrate this, consider the automation of a nuclear plant. Suppose one of
the clients say that it the radiation level inside the plant exceeds R1, all reactors should be
shut
down. However, another person from the client side suggests that the threshold radiation
level should be R2. Thus, there is an inconsistency between the two end users regarding what
they consider as threshold level of radiation.
• Completeness: A particular requirement for a system should specify what the system should
do and also what it should not. For example, consider a software to be developed for ATM. If
a customer enters an amount greater than the maximum permissible withdrawal amount, the
ATM should display an error message, and it should not dispense any cash.
Categorization of Requirements
Based on the target audience or subject matter, requirements can be classified into different types,
as stated below:
• User requirements: They are written in natural language so that both customers can
verify their requirements have been correctly identified
• System requirements: They are written involving technical terms and/or specifications,
and are meant for the development or testing teams
Requirements can be classified into two groups based on what they describe:
• Product requirements: For example,a specification that the web application should use
only plain HTML, and no frames
Functional Requirements
• Identify the high-level functional requirements simply from the conceptual understanding of
the problem. For example,a Library Management System, apart from anything else, should
be able to issue and return books.
• Identify the cases where an end user gets some meaningful work done by using the
system. For example, in a digital library a user might use the "Search Book" functionality to
obtain information about the books of his interest.
• If we consider the system as a blackbox, there would be some inputs to it, and some output
in return. This blackbox defines the functionalities of the system. For example, to search for a
book, user gives title of the book as input and get the book details and location as the output.
Once all possible FRs and non-FRs have been identified, which are complete, consistent, and non-
ambiguous, the Software Requirements Specification (SRS) is to be prepared. IEEE provides a template
[iv],also available here,which could be used for this purpose. The SRS is prepared by the service
provider, and verified by its client. This document serves as a legal agreement between the client
and the service provider. Once the concerned system has been developed and deployed, and a
proposed feature was not found to be present in the system, the client can point this out from the
SRS. Also, if after delivery, the client says a new feature is required, which was not mentioned in
the SRS, the
service provider can again point to the SRS. The scope of the current experiment, however,
doesn't cover writing a SRS.
Case Study
answer the security question correctly, his LIS account would be blocked. He
needs to contact with the administrator to make it active again
• Issue book: Any member of LIS can issue a book against his account provided
that:
# Requirement Priority
Once all the functional and non-functional requirements have been identified, they are documented form
UML Use Case diagram for Library Management System is shown below. The various participants of
the same are detailed below:
Actors: Member, Librarian
The corresponding use cases for these actors are:
• Member: Inquiry for Membership, Search Book, Book Issue, Book Return, Pay Fine
• Librarian: Search Book, Issue Membership Card, Cancel Membership, Issue Book,
Return Book, Charge Fine in Case of Late Return, Maintain the Book Records, Add Books,
Remove Books, Add Members, Remove Members, Update Member Details
Here we have some dependencies also like Request for Book Return
<<extends>>Pay Fine. Also Maintain Book Records <<includes>> Add Book,
Remove Book and Update Book.
Here, in this system there could be two types of users: Student and Faculty. Both use
to share many of the properties and methods. So, we defined a new class that is user
and from it both student and faculty class inherits properties and methods. Hence,
User is basically an abstract class whose object directly can't be created.
Similarly, Reference Book, General Book and Book Bank all three classes share many of its
attributes so, we generalized all the three classes with superclass Books and from it all
the other three classes inherit methods and properties. Unlike User class, Books class is
not an
abstract class. We can create as well as instantiate its objects directly.
c. Online shopping
Collaboration diagram is an interaction diagram that emphasizes the structural organization of the
objects that send receive message. A collaboration diagram is very similar to sequence diagram.
Collaboration diagram shows the objects and their association with other objects. Modeling objects
in a system and representing the association between the object as links are easily represented in a
collaboration diagram.
State chart diagram are used to help the developers better understand any complex functionalities or
business flow of specialized area of system. In short state chart diagram depict the dynamic behavior
of the entire system. A state chart diagram shows a state machine. State chart diagram can be
used to graphically represent finite state machine.