Professional Documents
Culture Documents
Engineering
LAB FILE
Software Engineering Lab
(KCS-651)
AIM : Prepare a SRS document in line with the IEEE recommended standards.
1.1 PROBLEMDEFINITION
Ticket reservation system for airlines has to be developed.
The system developed should contain the following features
1. The system should contain the followingfeatures
2. Search for information about the flight by means of flight number anddestination
3. While displaying information about the flight it has to provide availability ofseats.
4. While reserving tickets the system obtain following information from the user
Passenger Name, Sex, Age,Address.
Credit Card Number, Bank Name.
Flight number, Flight name, Date of Journey and number of tickets to be booked.
5. Based on the availability of tickets, the ticket has to be issued. The ticket issued
should contain the following information –ticket number, flight no, flight name,
date of journey, number of passengers, sex, age and departuretime.
6. Cancellation of booked tickets should beavailable.
2.2 INTRODUCTION
2.1.1 Purpose
2.1.1.1 The purpose of this SRS is to describe the requirements involved in developing a
Airline Reservation system(ARS).
2.1.1.2 The intended audience is any person who wants to reserve or cancel tickets or to
check the availability of Airlinetickets
The product is titled Airline Reservation system(ARS).
2.1.2 Scope
2.1.3 Overview
2.1.3.1 The SRS contains an analysis of the requirements necessary to help easy
design.
2.1.3.2 The overall description provides interface requirements for the Airline
Reservation system, product perspective, hardware interfaces software
interfaces,, communication interface, memory constraints, product
functions, user characteristics and otherconstraints.
2.1.3.3 Succeeding pages illustrate the characteristics of typical naïve users
accessing the system along with legal and functional constraints enforced
that affect Airline Reservation system in anyfashion.
2.3 SPECIFICREQUIREMENTS
2.3.1 Logical DatabaseRequirements
2.3.1.1 The system should contain databases that include all necessary information for the
product to function according to the requirements. These include relations such as
flight details, reservation details, and cancellationdetails.
2.3.1.2 The user details refer to the information such as flight number and name, start and
destination stations, seatavailability.
2.3.1.3 Reservation details refer to personal information that is obtained from theuser
2.3.1.4 At the time of reservation, the passenger is provided a unique ticket no that could be
used at the time ofcancellation.
2.3.1.5 While displaying any information about the flight it has to provide the following
information
Flight no and name
Availability of seats for the particular flight
The flight timing
The passenger personal details should be obtained for reserving the tickets.
2.6 DATASTRUCTURES
2.6.1. FLIGHTDETAILS
FIELD NAME TYPE CONSTRAINTS
ROUTE_NAME TEXT NOT NULL
FLIGHT_NO NUMBER NOT NULL
SEATS_AVAIL NUMBER
JOURNEY_DATE DATE/TIME
DEP_TIME DATE/TIME
ARR_TIME DATE/TIME
COST NUMBER
2.6.2. PASSENGERDETAILS
FIELD NAME TYPE CONSTRAINTS
TICKET_NO AUTONUMBER NOT NULL
NAME TEXT NOT NULL
GENDER TEXT
ADDRESS TEXT
CC_NO NUMBER NOT NULL
BANK_NAME TEXT
NO_OF_TICKETS NUMBER
3.0 TESTING:
Program No. 2
Objective:-Draw the use case diagram and specify the role of each of the actors.
Also state the precondition, post condition and function of each use case.
Result:-
2. book_return
3. book_order
4. book_entry
5. searchbook_details
Actors Involved:
1. Student
2. Librarian
3. Vendor
The librarian initiates this use case when any member returns or request the book and checking if the
book is available.
UsecaseName :Book_Order
Initiated by librarian when the requested book is not available in the library at that moment. The book is
reserved for the future and issued to the person when it is available.
Precondition: Initiated only when book is not available.
Normal Flow: It reserved the book if requested.
Post Condition :Mention the entry in catalogue for reservation.
UsecaseName :Book_Return
Invoked by the librarian when a member returns the book.
Precondition: Member should be valid member of library.
Normal Flow: Librarian enters bookid and system checks for return date of the book. Alternative Flow:
System checks for return date and if it returned late fine message will be displayed. 12
Use Case diagram for Book Bank System
Program No. 3
Objective:-Draw the activity diagram for ATM, discuss two activities for the same.
Result:-
Activity diagrams are graphical representations of workflows of stepwise activities and actions
withsupport for choice, iteration and concurrency. In the Unified Modeling Language, activity diagrams
can be used to describe the business and operational step-by-step workflows of components in a
system. An activity diagram shows the overall flow of control. An activity is shown as an rounded box
containing the name of the operation.
This activity diagram describes the behaviour of the system.
Activity1:
Activity2
Program No.-4
DFD
A DFD provides no information about the timing or ordering of processes, or about whether
processes will operate in sequence or in parallel. It is therefore quite different from a
flowchart, which shows the flow of control through an algorithm, allowing a reader to
determine what operations will be performed, in what order, and under what circumstances,
but not what kinds of data will be input to and output from the system, nor where the data
will come from and go to, nor where the data will be stored (all of which are shown on a
DFD).
It is common practice to draw a context-level data flow diagram first, which shows the
interaction between the system and external agents which act as data sources and data sinks.
On the context diagram (also known as the Level 0 DFD) the system's interactions with the
outside world are modeled purely in terms of data flows across the system boundary. The
context diagram shows the entire system as a single process, and gives no clues as to its
internal organization.
Customer
This context-level DFD is next "exploded", to produce a Level 1 DFD that shows some of the detail
of the system being modeled. The Level 1 DFD shows how the system is divided into sub-systems
(processes), each of which deals with one or more of the data flows to or from an external agent, and
which together provide all of the functionality of the system as a whole.
Level-1 DFD
This could continue to evolve to become a level 2 diagram when further analysis is required.
1. Create three processes(Process order,Ship Good, Issue Receipt) in the centre as shown below.
2. Create external entity customer
3. Create three databases Inventory ,Customer, Transaction.
4. After that we will connect them.
DFD Diagram
Program No.-5
AIM: Draw the ER Diagram
ER Diagram
Entity
Entities are represented by means of rectangles. Rectangles are named with the entity set
they represent.
Attributes
Attributes are the properties of entities. Attributes are represented by means of ellipses.
Every ellipse represents one attribute and is directly connected to its entity (rectangle). If the
attributes are composite, they are further divided in a tree like structure. Every node is then
connected to its attribute.
Composite attributes are represented by ellipses that are connected with anellipse.
One-to-one − When only one instance of an entity is associated with the relationship,
it is marked as '1:1'. The following image reflects that only one instance of each
entity should be associated with the relationship. It depicts one-to-onerelationship.
Many-to-many − The following image reflects that more than one instance of an
entity on the left and more than one instance of an entity on the right can be
associated with the relationship. It depicts many-to-many relationship.
Participation Constraints
Partial participation − Not all entities are involved in the relationship. Partial
participation is represented by singlelines.
Result:-
The class diagram, also referred to as object modeling is the main static analysis diagram. The main
task of object modeling is to graphically show what each object will do in the problem domain. The
problem domain describes the structure and the relationships among objects.
2. Book
3. Issue
4. Return
5. Vendor
6. Details
1) Student:
It consists of twelve attributes and three operations. The attributes are enrollno, name, DOB,
fathername, address, dept name, batch and book limits. The operations of this class are addStInfo(),
deleteStInfo(), modifyStInfo().
2) Book:
It consists of ten attributes and four operations. This class is used to keep book information such as
author, title, vendor, price, etc
3) Issue:
It consists of eight attributes and two operations to maintain issue details such as, issue date, accno of
issued book, name of the student who borrowed book.
4) Return:
It consists of eight attributes and two operations to maintain issue details such as, issue date, accno of
issued book, name of the student who borrowed book.
5) Students:
The attributes of this class are name, dept ,year ,bcode no The operation is display students().
6) Detail:The attributes of this class are book name, author, bcode no The operations are delete
details().
Class Diagram For Book Bank System
Class Diagram For Book Bank System
Program No. 7
Objective:-Draw the sequence diagram for any scenario.
Result:-
A sequence diagram represents the sequence and interactions of a given USE-CASE or scenario.
Sequence diagrams can capture most of the information about the system. Most object to object
interactions and operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.
An event also is considered to be any action by an object that sends information. The event line
represents a message sent from one object to another, in which the “form” object is requesting an
operation be performed by the “to” object. The “to” object performs the operation using a method
that the class contains.
It is also represented by the order in which things occur and how the objects in the system send
message to one another.
Program No.8
Objective: Draw the collaboration diagram.
Result:
Collaboration Diagrams describe interactions among classes and associations. These interactions
are modeled as exchanges of messages between classes Through their associations. Collaboration
diagrams are a type of interaction Diagram.
Collaboration diagrams contain the following elements.
Cass roles: which represent roles that objects may play within the interaction.
Association roles: which represent roles that links may play within the interaction.
Message flows: which represent messages sent between objects via links. Links transport or
implement the delivery of the message.
24 | P a g e
Collaboration Diagram For Book Issue & Return
Program No. 9
Objective: Draw the state chart diagram.
Result:
It consists of state, events and activities. State diagrams are a familiar technique to describe the
behavior of a system. They describe all of the possible states that a particular object can get into and
how the object's state changes as a result of events that reach the object.
Result:
▪ Components
▪ Interfaces
▪ Dependency, generalization, association, and realization relationships. Like all other diagrams
component diagrams contains notes and constraints.
Program No. 11
Objective:- Draw the deployment diagram
Result:-
Deployment diagrams are used to visualize the topology of the physical components of a system
where the software components are deployed.
These Diagrams contain components and nodes, which represent processing or computational
resources, including computers, printers, etc.