0% found this document useful (0 votes)
212 views8 pages

Airline Booking System

The document describes requirements and design for an airline booking system. It outlines 5 key requirements: 1) check flight and seat availability, 2) create passenger accounts, 3) allow passengers to select seats, 4) send notifications about flight changes, and 5) allow passengers to select meals. For each requirement, it provides use case descriptions and defines relevant user objects with attributes and behaviors. It also includes sections on traceability matrices, SQL commands to setup database tables, and sample data insertion.

Uploaded by

Arshpreet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views8 pages

Airline Booking System

The document describes requirements and design for an airline booking system. It outlines 5 key requirements: 1) check flight and seat availability, 2) create passenger accounts, 3) allow passengers to select seats, 4) send notifications about flight changes, and 5) allow passengers to select meals. For each requirement, it provides use case descriptions and defines relevant user objects with attributes and behaviors. It also includes sections on traceability matrices, SQL commands to setup database tables, and sample data insertion.

Uploaded by

Arshpreet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Airline Booking System

October 29, 2019

Contents
1 Group 2

2 Introduction 2

3 Requirements Document 3

4 USE CASES and UML 4


4.1 USE CASE For Requirement 1: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.1.1 UML OBJECT Name: Check Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.2 USE CASE For Requirement 2: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.2.1 UML OBJECT Name:User Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.3 USE CASE For Requirement 3: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.3.1 UML OBJECT Name: Choose seat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4 USE CASE For Requirement 4: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.1 UML OBJECT Name:Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.5 USE CASE For Requirement 5: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.5.1 UML OBJECT Name:Choose Food . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

5 Traceability Matrix 5

6 SQL Commands to Create Tables in database 6


6.1 SQL for creating tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.1.1 Passenger Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.1.2 Flight Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.1.3 Tickets Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2 SQL for inserting Data into tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2.1 Data inserted in PASSENGER Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2.2 Data inserted in FLIGHT Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.2.3 Data inserted in Ticket Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.3 SQL queries for Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

1
1 Group
Aditi Saharan C0760753
Amanpreet Kaur C0757773
Amarjot Singh C0758558
Arshpreet Kaur C0758537

• This is the link for SQL queries: SQL-Queries.


• This is the link for Youtube Video: Youtube Video

2 Introduction
In this Project, we are going to make a system for Airline reservation . Firstly, we will discuss about Unified Processes
in short then move to the design of project.

1. Unified Process - The Unified Process fits the general definition of a process: a set of activities that a team performs
to transform a set of customer requirements into a software system.
Requirements - It is a set of Application’s functional requirements.
Use Case - Use cases are expressed in natural language (English or the native language of the customers). Well-written
use cases are also intuitively obvious to the reader.Use cases offer the ability to achieve a high degree of traceability of
requirements into the models that result from ongoing development. By keeping the use cases close by at all times, the
development team is always in touch with the customers’ requirements
Traceability matrix -is a document, usually in the form of a table, used to assist in determining the completeness of a
relationship by correlating any two baselined documents using a many-to-many relationship comparison.[1] It is often
used with high-level requirements (these often consist of marketing requirements) and detailed requirements of the
product to the matching parts of high-level design, detailed design, test plan, and test cases.

2
3 Requirements Document

Requirement 1(R1): The system shall provide flight and seat availability according to user’s conditions.

Requirement 2(R2): Make Passenger account for future use and for keeping documents of the users

Requirement 3(R3): The system shall allow user to choose their seats.

Requirement 4(R4): The system shall send notifications regarding the cancellation or rescheduling of flight.

Requirement 5(R5): The user will request the system to choose between the provided meals for flight

3
4 USE CASES and UML
1. Requirement 1: The system shall provide flight and seat availability according to user’s conditions.

4.1 USE CASE For Requirement 1:


(a) Goal: Check availability for booking a flight
(b) Actor: Passenger
(c) Description: For checking the availability fill out the information regarding Departure and Arrival place, date and
time, cabin type and then choose a desired flight

4.1.1 UML OBJECT Name: Check Availability

(a) UML OBJECT Data attributes: FLIGHT INFO, Passenger INFO


(b) UML OBJECT Methods or behaviors: sql statement to insert passenger record into FLIGHTS TABLE;
(c) Precondition:: RUN SQL to ensure there is a available seat

2. Requirement 2: Make user account for future use and for keeping documents of the users

4.2 USE CASE For Requirement 2:


(a) Goal: To make user account
(b) Actor: User/Passenger
(c) Description: Making user account by getting minimum personal information like Name, Residence, Contact infor-
mation and then selecting a unique user name that does not exist before and setting up a password for that for
the access to account later.

4.2.1 UML OBJECT Name:User Account

(a) UML OBJECT Data attributes:Passenger INFO


(b) UML OBJECT Methods or behaviors: Making SQL queries for adding personal information of passenger .For
example- Full Name, Passport Number, Contact-No., Address.

3. Requirement 3: The system shall allow user to choose their seats.

4.3 USE CASE For Requirement 3:


(a) Goal: To Choose seat
(b) Actor: User/Passenger
(c) Description:While booking the flight, users can also choose seats by themselves.

4.3.1 UML OBJECT Name: Choose seat

(a) UML OBJECT Data attributes: Flight Number, seat number


(b) UML OBJECT Methods or behaviors: While booking the flight, Passenger can choose seat according to availability.

4. Requirement 4:

4.4 USE CASE For Requirement 4:


(a) Goal: To send notifications
(b) Actor: System
(c) Description: The system should send notification regarding any change in the schedule of the flight through E-mail.

4
4.4.1 UML OBJECT Name:Message

(a) UML OBJECT Data attributes: Flight status


(b) UML OBJECT Methods or behaviors: The system will send notification regarding the stratus of flight to passenger.

5. Requirement 5:The system shall allow user to choose meal according to preference.

4.5 USE CASE For Requirement 5:


(a) Goal: To choose meals in the flight
(b) Actor: User
(c) Description: The user will request the system to choose between the provided meals for flight

4.5.1 UML OBJECT Name:Choose Food

(a) UML OBJECT Data attributes: Meal


(b) UML OBJECT Methods or behaviors:Te user will choose meals according to choice.

5 Traceability Matrix
Airline Reservation System
Requirements Passengers Flight Ticket
R1 Yes
R2 Yes
R3 Yes Yes
R4 Yes Yes
R5 yes

5
6 SQL Commands to Create Tables in database
6.1 SQL for creating tables
6.1.1 Passenger Table
CREATE TABLE passenger (
Passenger_Id VARCHAR (50),
Passport_id VARCHAR (50),
Name VARCHAR (50),
Contact_No VARCHAR (50) ,
Adress VARCHAR (50),
PRIMARY KEY (Passport_id)
) ;

6.1.2 Flight Table


CREATE TABLE Flight (
Flight_No varchar(255),
Depature_Place varchar(255),
Arrival_Place varchar(255),
Departure_time varchar(255),
Arrival_time varchar(255),
Total_duration varchar(255),
Availability varchar(255),
Status varchar(255),
primary key(Flight_No)

);

6.1.3 Tickets Table


CREATE TABLE tickets (
Ticket_No VARCHAR (50) ,
Seat_No VARCHAR (50) ,
Booking_Date DATE ,
Flight_No VARCHAR (50) ,
Passport_id VARCHAR (50),
Travel_Date DATE ,
Ticket_Price MONEY ,
Ticket_Status VARCHAR (50) ,
Meal VARCHAR (50),
PRIMARY KEY ( Ticket_No ) ,

);

6.2 SQL for inserting Data into tables


6.2.1 Data inserted in PASSENGER Table
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P01’, ’A2465387 ’, ’Amandeep Kaur’,’447-578-0052’,’4550 Sheppard Ave ’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P02’,’A2465388 ’, ’Paramjeet Kaur ’,’647-679-1052 ’,’4551 Steele north ’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P03’,’B2465328 ’, ’Jaspreet Kaur’,’447-679-0052’,’4552 Brick road’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P04’, ’C2465487 ’, ’Priyanka Kaur’,’657-679-0052’,’4553 Alley ’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P05’,’K2467384 ’, ’Akansha’,’646-679-0052’,’878 A road ’);

6
INSERT INTO passenger (Passenger_Id, Passport_id,Name, Contact_No, Adress)
VALUES (’P06’, ’ A2431327’, ’Phillpa’,’647-679-0051’,’4555 Main street ’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P07’, ’L2565327 ’, ’Kamalpreet Kaur ’,’447-578 -0052’,’4556 Sheppard Ave ’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P08’,’N2485589 ’, ’Manpreet Kaur’,’647-679-0152’,’4557 Washington ’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P09’, ’A2665350 ’, ’Arshdeep Kaur ’,’643-679-0052’,’550 London’);
INSERT INTO passenger (Passenger_Id, Passport_id, Name, Contact_No, Adress)
VALUES (’P10’, ’U8463385 ’, ’Khushdeep Singh’,’644-679-0052’,’450 Abbey road ’);

6.2.2 Data inserted in FLIGHT Table


Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status )
values(’V160’, ’YYZ’, ’YUL’,’14:30:00’,’15:30:00’,’1hr’, ’Yes’, ’On time’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place, Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V161’, ’YQM’, ’YWG’,’10:30:00’,’15:30:00’,’5hr’, ’No’, ’Delayed’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V163’, ’YQB’, ’YHM’,’08:30:00’,’13:30:00’,’5hr’, ’Yes’, ’Delayed’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V164’, ’YHZ’, ’YYZ’,’7:30:00’,’11:30:00’,’4hr’, ’No’, ’Early’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V165’, ’YUL’, ’YOM’,’4:30:00’,’21:30:00’,’5hr’, ’Yes’, ’On time’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V166’, ’YOW’, ’YQX’,’4:30:00’,’16:30:00’,’12hr’, ’No’, ’On time’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V167’, ’YXU’, ’YYZ’,’9:30:00’,’15:30:00’,’6hr’, ’Yes’, ’Early’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V168’, ’YYZ’, ’YYZ’,’14:30:00’,’4:30:00’,’14hr’, ’No’, ’Cancelled’);
Insert into Flight(Flight_No, Depature_Place,Arrival_Place,Departure_time, Arrival_time, Total_duration,
Availability, Status)
values(’V169’, ’YQM’, ’YQX’,’14:30:00’,’5:30:00’,’15hr’, ’Yes’, ’Departimg Late’);

6.2.3 Data inserted in Ticket Table


INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999001’,’30’, ’2018 -12 -28’,’V160’,’A2465387 ’,’2019 -10 -15’,’1409.52’,’ Confirmed’,’Non-Veg’ );
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999002’,’200’, ’2019 -01 -28’,’V161’,’A2465388’,’2019 -12 -15’,’1250.50’,’ Confirmed’,’Veg’ );
INSERT INTO tickets (Ticket_No,Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999003’,’54’, ’2018 -11 -24’,’V162’,’B2465328’,’2019 -01 -05’,’1274.92’,’Confirmed’,’Veg’ );
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999004’,’76’, ’2019 -02 -14’,’V163’,’C2465487’,’2019 -03 -19’,’1409.52’,’ Confirmed’,’Non-Veg’ );
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,

7
Ticket_Status, Meal)
VALUES (’FY9999005’,’90’, ’2019 -05 -10’,’V164’,’K2467384’,’2019 -06 -25’,’1395.58’,’ Confirmed’ ,’Veg’);
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999006’,’54’, ’2019 -07 -22’,’V165’,’A2431327’,’2019 -09 -23’,’1800.52’,’Confirmed’,’Non-Veg’ );
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999007 ’,’78’, ’2019 -08 -26’,’V166’,’L2565327 ’,’2019 -09 -30’,’1692.70’,’Confirmed’,’Veg’ );
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999008’,’43’, ’2019 -07 -20’,’V167’,’N2485589’,’2019 -10 -30’,’1478.52’,’ Confirmed’,’Non-Veg’ );
INSERT INTO tickets (Ticket_No, Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY9999009’,’43’, ’2019 -08 -26’,’V168’,’A2665350’,’2019 -10 -30’,’1980.52’,’ Confirmed’,’Veg’ );
INSERT INTO tickets (Ticket_No,Seat_No, Booking_Date, Flight_No, Passport_id, Travel_Date, Ticket_Price,
Ticket_Status, Meal)
VALUES (’FY99990010’,’234’, ’2019 -07 -1 ’,’V169’,’U8463385’,’2019 -10 -30’,’1490.52’,’Confirmed’,’Non-Veg’ );

6.3 SQL queries for Requirements


For checking Availability for flight-
select Flight_No,Availability from flight
where Availability = ’Yes’;

Make User Account-


select * from passenger

For Seat-
select passenger.Passport_id , tickets.Seat_No ,Flight.Flight_No
from passenger , tickets, Flight
where passenger.Passport_id = tickets.Passport_id and tickets.Flight_No = Flight.Flight_No

Notification for flight status-


SELECT Flight_No, Status,
CASE
WHEN Status = ’On time’ THEN ’The Flight is on Time’
WHEN Status = ’Delayed’ THEN ’The Flight is Delayed’
WHEN Status = ’Cancelled’ THEN ’The Flight is Cancelled’
ELSE ’The Flight is departing early’
END AS Schedule
FROM Flight;

For Meal-
select Passport_id, Meal
from tickets

This is the link for SQL queries: SQL-Queries.

You might also like