Professional Documents
Culture Documents
Software Engineering
Airlines Reservation System
Submitted To
Mr.Balraj Singh.
Submitted By
Mukesh kumar
Roll No:-29\
ACKNOWLEDGEMENT
I would like to take this opportunity to express my gratitude towards all the
people
who have in various ways, helped in the successful completion of my
project.
I also thank all my faculty members for steering me through the tough as
well as
easy phases of the project in a result oriented manner with concern attention
AIRLINE RESERVATION SYSTEM
PROBLEM DEFINITION
“Apple Airways” are one of the private airlines in India, which caters
large number of people. It has about 10 planes in which 5 serves for
domestic and 5 for international. As the company is doing good business,
they want to make the reservation system as a computerized Airline
Reservation System. The plane details, their departure and arrival time,
source and destination are as follows.
The system should get the passengers details such as name, age,
address, passport number, which plane he/she wants to travel and the
destination point.
The software should provide search options. If the source point and
destination point are entered, then all the planes traveling between these
planes with arrival and departure time should be displayed for the sake of
passenger.
The price list of the ticket is also put up according to the class the
passenger prefers to travel.
AIRLINE RESERVATION SYSTEM
1. INTRODUCTION
1.1. PURPOSE
1.2 SCOPE
1.4 REFERENCES
The books and materials referred during the pre-development stages of the
project include
1. Software Engineering-A Practitioner’s Approach
By Roger S. Pressman
2. Software Engineering-By James Peters
1.5 OVERVIEW
The rest of the document deals about all the main features of this software
each will its purpose and its main functions. It also gives details about the
interface with other products and related functionality of each product.
2. OVERALL DESCRIPTION
2.1.7 Operation
The users can first make a reservation in a particular flight for a particular
date and time. The system provides the customer with a pin code which
gives him access to either make any changes in his reservation or cancel a
reservation. These must also be back up of data to enable any easy recovery
from any features.
It is assumed that the details of the cost of ticket are already known to the
customer. Future changes like providing different types of flights with
different classes like business class, economic class will allow the customers
to benefit from one facility.
3. SPECIFIC REQUIREMENTS
3.1 EXTERNAL INTERFACE REQUIREMENTS
3.2.1 FEATURE 1
The ability of the software is to provide the details of the flights available
and allow the customers to choose a particular destination and make a
reservation.
3.2.1.1 PURPOSE
The purpose of this is to enable the users to view the different flights
available so as to make it convenient for him to make a reservation.
3.2.1.2 STIMULUS/RESPONSE
Once the user chooses the particular option, the web pages
corresponding to that are to be displayed on the screen i.e., it will
display the different flights available to their respective destinations
and allow the customer to book a ticket.
3.2.1.3.1.1 INTRODUCTION
The user must be provided with the required information within
10 seconds.
3.2.1.3.1.2 INPUTS
The user must enter the destination with date and timings and
must make reservation by giving his personal details like name,
address, age, gender, nationality.
3.2.1.3.1.3 PROCESSING
Recognizing the correct details are entered that a message is
displayed confirming his reservation and displays the pin code.
3.2.2 FEATURE 2
The software allows the user to modify an already existing reservation
made by the customer if in case there are any changes that are to be
modified in the reservations of the ticket.
3.2.2.1 PURPOSE
The purpose is to allow the customer to make any changes in his
personal details or flight booking details.
3.2.2.2 STIMULUS/RESPONSE
Once the user requests for changing his reservation, it must be
displayed on the screen prompting the customer to enter his pin code.
3.2.2.3.1.1 INTRODUCTION
The system will allow the customer to modify his reservation
provided correct pin code has been entered by him.
3.2.2.3.1.2 INPUT
The user should enter his pin code which gives him access to
modify his reservation.
3.2.2.3.1.3 PROCESSING
The pin code is processed and checked for his validity. If it is
correct then the user can modify his reservation else an error
message will be displayed asking the user to enter the correct
pin code number.
3.2.2.3.1.4 OUTPUT
Given the correct pin code, the user can now modify his
reservation. A new pin code will be generated for the
customers.
3.2.3 FEATURE 3
The software allows the user to cancel an already existing reservation made
by the customer who has booked the ticket.
3.2.3.1 PURPOSE
The purpose is to allow the customer to cancel his reservation if not
required.
3.2.3.1 STIMULUS/RESPONSE
Once the user requests for canceling his reservation, it must be
displayed on the screen prompting the customer to enter his pin code.
3.2.3.3.1.1 INTRODUCTION
The system will allow the customer to cancel his reservation
provided correct pin code has been entered by the customer.
3.2.3.3.1.2 INPUT
The user should enter his pin code which gives him access to
cancel his reservation.
3.2.3.3.1.3 PROCESSING
The pin code is processed and checked for its validity. If it is
correct, then the user can cancel his reservation else an error
message will be displayed asking the user to enter the correct
pin code number.
3.2.3.3.1.4 OUTPUT
Given the correct pin code, the user can now cancel his
reservation.
3.2.4 FEATURE 4
The software must also give a report on the number of reservations made for
a particular flight.
3.2.4.1 PURPOSE
The purpose is to enable the administrator to view the number of
people in a particular flight.
3.2.4.2 STIMULUS/RESPONSE
Once the user requests for this option, all the details of the customers
who have made reservation will be displayed.
3.2.4.3.1.1 INTRODUCTION
The system will allow the administrator to view all the details
of the customer who have made reservations.
3.2.4.3.1.2 INPUT
The administrator must enter the password so that access is
given only to him to view the details of all the customers.
3.2.4.3.1.3 PROCESSING
The password is processed and checked for its validity. If it is
not correct, then the administrator is asked to enter the correct
password.
3.2.4.3.1.4 OUTPUT
Given the correct password, the administrator can view all the
details of customers with date and time of their bookings made.
3.5.2 Reliability
The factors needed to establish the software expected reliability are
• The user inputs should be valid and within the given range.
• Normal termination of the program.
3.5.2 Availability
The factors guarantee the software’s availability includes proper termination
and correct input details. Also the resources used for the project
development are Microsoft Certified which speaks of its high quality
standards.
3.5.3 Security
• It must be ensured that access will be provided to the authorized
persons through user ID and password.
• Network security will be provided by the use of firewalls.
• Checks can be performed at regular internals to ensure data integrity.
3.5.4 Maintainability
The software will be developed by implementing the concept of modularity
which in turn reduces the complexity involved in maintaining it. The
administrator should have a sound technical knowledge about maintaining
the software and further enhancements will be undertaken by the developer.
3.5.5 Portability
The application is portable which ensures its adaptability for use on different
computer terminals with different operating systems and standards.
The system requires the use of text files to maintain the customers personal
details and his booking details. An entity must be used to specify the various
departments and the seats available in them. This information will be used
frequently by the authorities for verification.
4. INDEX
Nil
5. APPENDICES
Nil
1..>>ALGORITHM
In this phase further I had designed algorithms for various technical sub
problem a few than are
enclosed here with.
RESERVATION
A PERSON COME TO RESERVED ATICKET.
•
THEN HE GIVES HIS FULL DETAILS
•
IN CUSTOMER FORM THOSE DETAILS WERE WRITTEN.
•
THEN COMPUTER CHEQUE THE DATE WHAT DATE THE PERSON
RESER
VED
•
DATE WISE IT CHEQUE THE FLIGHTS
•
IF THE FLIGHT IS FLING THAT DAY
•
THEN SYSTEM JUSTIFY THE SPECIFIC FLIGHT ID
•
IT CHEQUE ITS SEAT CLASS.
•
IF THE PASSENGER WANT TO ECONOMIC CLASS AND WINDOW
SIDE SEAT
•
THEN SYSTEM CHEQUE IF THERE ANY SEAT IN ECONOMIC
CLASS WHICH
IS INSIDE THE WINDOW
•
IF SEAT IS EMPTY THEN SYSTEM RESERVED THE SEAT .
Cancellation Facility
- > Using a cascade delete operation on multiple tables
- > The “Booked” column in tblFlights decremented by 1 for
each cancellation.
- > All the details corresponding to that particular
“Customer Id” is deleted from the “tblPassenger” table
from database.
- > All the reservation details are deleted from the table
“tblReservationDetails” according to that very
“CustomerId”.
2.>Customer Feedback
- > Customer inputs its feedback in form of Feedback score,
which can range from 0 to 10. Another option is “comment”
which is optional.
User can comment upon the services of the company.
LEVEL 1(a):
Accept
User Reservation the
details
Reserve in Passenger
the file Database
LEVEL 1(b):
Cancellatio Accept
User n the
details
Cancel in Passenger
the file Database
LEVEL 2:
Read Customer
Displa
User Passenger database
y
details
Display in
tabular
form
Customer Feedback
- > Customer inputs its feedback in form of Feedback score,
which can range from 0 to 10. Another option is “comment”
which is optional.
User can comment upon the services of the company.
Formula
FP = count total*[0.65+ (0.01*Σ Fi)]
=33*[0.65+ (0.01*29)]
= 31.02
Function point count for Airline reservation system= 31.02
Lines of code=31.02*29=899.5=0.8KLOC
Code developed in ‘C++’
Effort =a*(KLOC) b
=3.2*(0.8)1.05
=2.5 person-month
Time = (Effort) d * c
= (2.5) 0.38 * 2.5
= 3.3 months
PROGRAM
#include<fstream.h>
#include<iostream.h>
#include<iomanip.h>
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<process.h>
#include<dos.h>
#include<time.h>
#include<string.h>
class airline
{
char name[20];
char addr[30];
char email[20];
long int phone;
long int passno;
long int date;
char source[30];
char dest[30];
char dep[20];
char arrv[20];
int pword;
public:
void reserve();
void display();
void cancel();
}ob;
ifstream fin;
ofstream fout;
int choice;
int size=sizeof(airline);
void line()
{
cout<<"\n";
for(int i=0;i<80;i++)
cout<<"-";
cout<<"\n";
}
void main()
{
do
{
clrscr();
line();
cout<<"\n\t\t\tAIRLINE RESERVATION";
cout<<"\SYSTEM\n";
line();
cout<<"\n\tMENU:\n";
cout<<"\n1:RESERVATION";
cout<<"\n2:DISPLAY";
cout<<"\n3:CANCELLATION";
cout<<"\n4:EXIT";
cout<<"\n\nEnter your choice : ";
fflush(stdin);
cin>>choice;
line();
switch(choice)
{
case 1: fout.open("nel.cpp",ios::app);
ob.reserve();
fout.write((char*)&ob,size);
fout.close();
getch();
break;
case 2: ob.display();
getch();
break;
case 3: ob.cancel();
getch();
break;
case 4: exit(0);
}
}while(choice<4);
getch();
}
void airline::reserve()
{
int mode,plno;
char pname[10];
clrscr();
cout<<"\nEnter passengers details : ";
cout<<"\nName mukesh samta - ";
gets(name);
cout<<"\nAddress -LPU JALANDHAR ";
gets(addr);
cout<<"\nE-Mail ID-mukeshsamta@gmail.com - ";
gets(email);
cout<<"\nTelephone no -9023260953 ";
cin>>phone;
cout<<"\nEnter the date of travelling :15/12/2010 ";
cin>>date;
line();
cout<<"\n\t1:Domestic\n\t2:International\nEnter the mode:";
cin>>mode;
if(mode==1)
{
cout<<"\nEnter the plane 1 or 2 or 3 - ";
cin>>plno;
switch(plno)
{
case 1: strcpy(pname,"aado1");
strcpy(source,"delhi");
strcpy(dest,"patna");
strcpy(dep,"10:00");
strcpy(arrv,"11:00");
break;
case 2: strcpy(pname,"aado2");
strcpy(source,"jalandhar");
strcpy(dest,”delhi");
strcpy(dep,"12:00");
strcpy(arrv,"13:15");
break;
case 3: strcpy(pname,"aado3");
strcpy(source,"patna");
strcpy(dest,"banglore");
strcpy(dep,"17:00");
strcpy(arrv,"18:00");
break;
}
}
else
if(mode==2)
{
cout<<"\nEnter the plane 1 or 2 or 3 - ";
cin>>plno;
switch(plno)
{
case 1: strcpy(pname,"aai01");
strcpy(source,"banglore");
strcpy(dest,"London");
strcpy(dep,"00:30");
strcpy(arrv,"10:30");
break;
case 2: strcpy(pname,"aai02");
strcpy(source,"london");
strcpy(dest,"Paris");
strcpy(dep,"03:20");
strcpy(arrv,"13:20");
break;
case 3: strcpy(pname,"aaio3");
strcpy(source,"paris");
strcpy(dest,"Colombo");
strcpy(dep,"19:30");
strcpy(arrv,"20:30");
break;
}
}
randomize();
pword=random(1000);
cout<<"\nPASSWORD\t"<<pword;
getch();
line();
clrscr();
}
void airline::display()
{
cout<<"\n\n\t1:Passenger Reports\n";
line();
cout<<"RESNO"<<setw(12)<<"NAME"<<setw(12) ;
cout<<"ADDRESS"<<setw(12)<<"SOURCE";
cout<<setw(16)<<"DESTINATION\n";
fin.open("nel.cpp");
line();
while(fin.read((char*)&ob,size))
{
cout<<pword<<setw(12)<<name;
cout<<setw(12)<<addr<<setw(12);
cout<<source<<setw(16)<<dest<<"\n";
}
line();
fin.close();
}
void airline::cancel()
{
int login,p=0;
fin.open("nel.cpp");
fout.open("tempfile1.cpp");
cout<<"\nEnter your password : ";
cin>>login;
while(fin)
{
if(login==pword)
p=1;
if(login!=pword)
fout.write((char*)&ob,size);
fin.read((char*)&ob,size);
}
fin.close();
fout.close();
remove("nel.cpp");
rename("tempfile1.cpp","nel.cpp");
clrscr();
if(p==0)
cout<<"\nNo match found";
else
cout<<"\nReservation cancelled";
}
OUTPUT
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
MENU:
1:RESERVATION
2:DISPLAY
3:CANCELLATION
4:EXIT
E-Mail ID - mukeshsamta@gmail.com
Telephone no - 9023260953
PASSWORD 131
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
MENU:
1:RESERVATION
2:DISPLAY
3:CANCELLATION
4:EXIT
1:Passenger Reports
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
MENU:
1:RESERVATION
2:DISPLAY
3:CANCELLATION
4:EXIT
Enter your choice : 3
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
MENU:
1:RESERVATION
2:DISPLAY
3:CANCELLATION
4:EXIT
1:Passenger Reports
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--------------------------------------------------------------------------------
MENU:
1:RESERVATION
2:DISPLAY
3:CANCELLATION
4:EXIT
TEST CASES
ERROR TRACKING: