2. NAME-SUBRAT SINGH
FATHER AGNEL SCHOOL
ROLL NUMBER- 32
ACKNOWLEDGMENT
I want to thank Mrs. ANIKA
AGGARWAL, the Computer
Science Teacher, who has
always been there for our
guidance and extending all
3. his support and help for the
completion of this project.
Certificate
This is to certify that Mr. subratsingh
(Roll No. - 32), student of class XII- A,
4. Father Agnel School,Noida has
completed research in the below
given project under the heading
‘Airlines’
during the academic session 2015-2016
under the guidance of Mr. Anika
Aggarwal.
Signature of External Examiner
Signature of Comp. Sc. Teacher
5. INDEX
1. motive of the Project
2. Introduction to project
3. Software and Hardware
Requirements
4. Classes Used
7. • Electronically handling of flight’s
record to enhance the , flexibility,
reliability and to remove the human’s
error.
• To provide accurate information
about the addition, deletion and
modified records.
• its easy to make flight reservations
by sitting at home .
8. INTRODUCTION
This project on Airline Management System is the
automatic registering process of airline system.
The system is able to provide much information
like passenger’s information, list of all passengers
etc. The system also allows us to add records
when a passenger reserves a ticket. For data
storage and retrieval we use the file-handling
facility of C Language. It enables us to add any
number of records in our database. But for the
9. intrinsic nature of file handling,the retrieval
process is slow when we search a particular record
in the database, because records are searched
sequentially. This program shows you an insight
into the management process of reservation in
Airline Management system.
SOFTWARE AND HARDWARE
REQUIREMENTS
11. CLASSES USED
Public members
Member functions
1. void LINE_HOR( int , int , int , char ) –
function to draw horizontal line.
2. void LINE_VER( int , int , int , char ) –
function to draw vertical line.
3. void BOX( int , int , int , int , int , char ) –
function to draw a box
4. void HEADER( char ) – function to
display the header of the program.
12. 5. void SPECIAL_EFFECTS( char[],int ) –
function to include -different special effects
in the program
private members
Data members
1. char airline_name[20]
2. float price 1
3. long float
4. float price2
5. int availability_in_business
13. 6. int availability_in_economy
7. int capacity_of_business
8. int capacity_of_economy
Protected members
Member functions
1.void in() – function to input flight details
2.void out() – function to display flight details
3.void output(char[]) – function to display flight
details according to the passengers class.
4.int autogen() – function to generate
flight_code .
14. Public members
member functions
1.void enter() – function to write flight details
in its file
2.void display() – function to read flight
details from its file.
3.void modify() – function to make
modifications in a particular flight record.
4.void search() – function to search a flight
record.
5.int flight_search(long,char[]) – function to
search a flight record and to display
according to a particular passenger’s class.
15. 6.void deletion() – function to delete a
particular record.
7.int update_availability(int,char[]) – function
to increment/decrement availability of seats
when ticket booking /cancellation occurs
according to the class chosen by the
passenger.
8.int pass() – function to check password
9.long retcode() – fuction to provide access to
flight_code outside the class.
10.char * retname() – function to provide
access to airline_name outside the class.
16. 11.float retprice(char[]) – function to provide
access to price1/price2, according to the class
of the passenger, outside the class.
PASSENGER_details- It is a class used to keep track of
records related to passengers
private members
Data members
1. char name[20]
2. int age
3. char sex
4. long p_id
5. char Class[10]
6. long flight_code
protected members
17. member functions
1. long genp_id() – function to generate p_id.
2. int in() – function to input passenger details.
3. void out() – function to display passenger details.
4. void show_ticket() – function to display ticket.
5. void class_assign() – function to assign class.
6. void sex_assign() – function to assign sex.
public members
1. void book() – function to write passenger detail in its file.
2. void display() – function to read all passenger details.
3. void modify() – function to modify a passenger’s detail.
4. void search() – function to search a particular passenger.
5. void cancel() – function to delete a passenger’s record.
6. char * retclass() – function to provide access to class of a passenger
outside the class.
7. void passenger_delete(long) – function to delete passenger details
whose flight details have been deleted.
27. gotoxy(24,20);
cout<<"do youwant to modify:";
cin>>n;
gotoxy(24,21);
cout<<"Enter the options";
gotoxy(24,22);
cout<<"(optionswithspacesinb/w) :";
gotoxy(24,23);
for(inti=0;i<n;i++)
cin>>arr[i];
d.HEADER('/');
for(i=0;i<n;i++)
{
d.BOX(10,12,75,25,'~');
switch(arr[i])
{
case 1 : gotoxy(15,space++);
cout<<"Enter the new airline name :";
gets(airline_name);
break;
case 2 : gotoxy(15,space++);
cout<<"Enter the new price of business
classticket: ";
cin>>price1;
break;
case 3 : gotoxy(15,space++);
cout<<"Enter the new price of economy
classticket: ";
cin>>price2;
break;
case 4 : gotoxy(15,space++);
intn1_capacity;
cout<<"Enter the capacityof business
class: ";
cin>>n1_capacity;
if(n1_capacity<(capacity_of_business-
availability_in_business))
{
gotoxy(15,space++);
cout<<"Capacitycannot be
below "<<capacity_of_business-
availability_in_business;
gotoxy(15,space++);
cout<<"as these manytickets
have beenbooked";
getch();
}
else