Top Banner
AIRLINE RESERVATION SYSTEM An Airline Reservation System is part of the so-called Passenger Service Systems (PSS), which are applications supporting the direct contact with the passenger. The Airline Reservations System (ARS) was one of the earliest changes to improve efficiency. ARS eventually evolved into the Computer Reservations System (CRS). A Computer Reservation System is used for the reservations of a particular airline and interfaces with a Global Distribution System (GDS) which supports travel agencies and other distribution channels in making reservations for most major airlines in a single system. Airline Reservations Systems contain airline schedules, fare tariffs, passenger reservations and ticket records. An airline's direct distribution works within their own reservation system, as well as pushing out information to the GDS. A second type of direct distribution channel are consumers who use the internet or mobile applications to make their own reservations. Travel agencies and other indirect distribution channels access the same GDS as those accessed by the airlines' reservation systems, and all messaging is transmitted by a standardized messaging system that functions primarily on TTY messaging called SITA. Since airline reservation systems are business critical applications, and their functionally quite complex, the operation of an in-house airline reservation system is relatively expensive. Prior to deregulation, airlines owned their own reservation systems with travel agents subscribing to them. Today, the GDS are run by independent companies with airlines and travel agencies as major subscribers. As of February 2009, there are only three major GDS providers in the market space: Amadeus, Travelport (the merged Worldspan and Galileosystems), Sabre and Shares. There is one major Regional GDS, Abacus, serving the Asian marketplace and a number of regional players serving single countries, including Travelsky (China), Infini and Axxess (both Japan) and Topas (South Korea). There is a secondary GDS called Navitaire that hosts "ticket less" airlines such as AirTran, and previously JetBlue. Virgin America is hosted by iflyRes(aiRes), which is a new generation reservation system developed and operated by IBS Software Service Pvt. Ltd. In additional to these "standardized" GDS, some airlines have proprietary versions which they use to run their flight operations. A few examples of this kind of system are Deltamatic (built off the Worldspan platform) and EDS SHARES. SITA Reservations remains the largest neutral multi-host airline reservations system, with over 100 airlines currently managing inventory.
30
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Airline Reservation System

AIRLINE RESERVATION SYSTEMAn Airline Reservation System is part of the so-called Passenger Service Systems (PSS), which are

applications supporting the direct contact with the passenger.

The Airline Reservations System (ARS) was one of the earliest changes to improve efficiency. ARS

eventually evolved into the Computer Reservations System (CRS). A Computer Reservation System is

used for the reservations of a particular airline and interfaces with a Global Distribution System (GDS)

which supports travel agencies and other distribution channels in making reservations for most major

airlines in a single system.

Airline Reservations Systems contain airline schedules, fare tariffs, passenger reservations and

ticket records. An airline's direct distribution works within their own reservation system, as well

as pushing out information to the GDS. A second type of direct distribution channel are

consumers who use the internet or mobile applications to make their own reservations. Travel

agencies and other indirect distribution channels access the same GDS as those accessed by the

airlines' reservation systems, and all messaging is transmitted by a standardized messaging

system that functions primarily on TTY messaging called SITA. Since airline reservation systems

are business critical applications, and their functionally quite complex, the operation of an in-

house airline reservation system is relatively expensive.

Prior to deregulation, airlines owned their own reservation systems with travel agents subscribing

to them. Today, the GDS are run by independent companies with airlines and travel agencies as

major subscribers.

As of February 2009, there are only three major GDS providers in the market

space: Amadeus, Travelport (the merged Worldspan and Galileosystems), Sabre and Shares.

There is one major Regional GDS, Abacus, serving the Asian marketplace and a number of

regional players serving single countries, including Travelsky (China), Infini and Axxess (both

Japan) and Topas (South Korea). There is a secondary GDS called Navitaire that hosts "ticket

less" airlines such as AirTran, and previously JetBlue. Virgin America is hosted by iflyRes(aiRes),

which is a new generation reservation system developed and operated by IBS Software Service

Pvt. Ltd.

In additional to these "standardized" GDS, some airlines have proprietary versions which they use

to run their flight operations. A few examples of this kind of system are Deltamatic (built off the

Worldspan platform) and EDS SHARES. SITA Reservations remains the largest neutral multi-host

airline reservations system, with over 100 airlines currently managing inventory.

Page 2: Airline Reservation System

AVAILABILITY DISPLAY AND RESERVATION (PNR)

Users access an airline’s inventory through an availability display. It contains all offered flights for

a particular city-pair with their available seats in the different booking classes. This display

contains flights which are operated by the airline itself as well as code share flights which are

operated in co-operation with another airline. If the city pair is not one on which the airline offers

service it may display a connection using its' own flights or display the flights of other airlines.

The availability of seats of other airlines is updated through standard industry interfaces.

Depending on the type of co-operation it supports access to the last seat (Last Seat Availability) in

real-time. Reservations for individual passengers or groups are stored in a so-called Passenger

Name Record (PNR). Among other data, the PNR contains personal information such as name,

contact information or special services requests (SSRs) e.g. for a vegetarian meal, as well as the

flights (segments) and issued tickets. Some reservation systems also allow to store customer

data in profiles to avoid data re-entry each time a new reservation is made for a known passenger.

In addition most systems have interfaces to CRM systems or customer loyalty applications (aka

Frequent Traveler Systems). Before a flight departs the so-called Passenger Name List (PNL) is

handed over to the Departure Control System that is used to check-in passengers and baggage.

Reservation data such as the number of booked passengers and special service requests is also

transferred to Flight Operations Systems, Crew Management and Catering Systems. Once a flight

has departed the reservation system is updated with a list of the checked-in passengers (e.g.

passengers who had a reservation but did not check in (No Shows) and passengers who checked

in, but didn’t have a reservation (Go Shows)). Finally data needed for revenue accounting and

reporting is handed over to the administrative systems.

Fare Quote and Ticketing

List of fares for travel on Delta Airlinesfrom San Francisco, CA to Boston, MA. Applicable booking classes, as well

as specific restrictions such as minimum stay and advance purchase can be seen.

Page 3: Airline Reservation System

The Fares data store contains fare tariffs, rule sets, routing maps, class of service tables, and

some tax information that construct the price - "the fare". Rules like booking conditions (e.g.

minimum stay, advance purchase, etc.) are tailored differently between different city pairs or

zones, and assigned a class of service corresponding to its appropriate inventory bucket.

Inventory control can also be manipulated manually through the availability feeds, dynamically

controlling how many seats are offered for a particular price by opening and closing particular

classes.

The compiled set of fare conditions is called a fare basis code. There are two systems set up for

the interchange of fares data - ATPCO and SITA, plus some system to system direct connects.

This system distributes the fare tariffs and rule sets to all GDSs and other subscribers. Every

airline employs staff who code air fare rules in accordance with yield management intent. There

are also revenue managers who watch fares as they are filed into the public tariffs and make

competitive recommendations. Inventory control is typically manipulated from here, using

availability feeds to open and close classes of service.

The role of the Ticketing complex is to issue and store electronic ticket records and the very small

number of paper tickets that are still issued. Miscellaneous Charges Order (MCO)is still a paper

document; IATA has working groups defining the replacement document the Electronic

Multipurpose Document (EMD) as at 2010. The electronic ticket information is stored in a database

containing the data that historically was printed on a paper ticket including items such as the

ticket number, the fare and tax components of the ticket price or exchange rate information. In the

past airlines issued paper tickets; since 2008 IATA has been supporting a resolution to move to

100% electronic ticketing. So far, the industry has not been able to comply due to various

technological and international limitations. The industry is at 98% electronic ticket issuance today

although electronic processing for MCOs was not available in time for the IATA mandate.

HISTORYThe history of airline reservations systems began in the late 1950s when American

Airlines required a system that would allow real-time access to flight details in all of its offices,

and the integration and automation of its booking and ticketing processes. As a

result, Sabre(Semi-Automated Business Research Environment) was developed and launched in

1964. Sabre's breakthrough was its ability to keep inventory correct in real time, accessible

to agents around the world. Prior to this, manual systems required centralized reservation

Page 4: Airline Reservation System

centers, groups of people in a room with the physical cards that represented inventory, in this

case, seats on airplanes.

The deregulation of the airline industry, in the Airline Deregulation Act, meant that airlines, which

had previously operated under government-set fares ensuring airlines at least broke even, now

needed to improve efficiency to compete in a free market. In this deregulated environment the

ARS and its descendants became vital to the travel industry.

#include<fstream.h>

#include<process.h>

#include<conio.h>

#include<stdio.h>

#include<string.h>

#include<dos.h>

void res_menu();

void help();

void colyb() {textcolor(YELLOW);textbackground(BLUE);}

void coldes(int a,int b) {textcolor(a);textbackground(b);}

void s(int i,int j)

{

for(int a=i;a>0;a-=j)sound (a);

Page 5: Airline Reservation System

}

void saund(int j)

{

j=0;

for(int i=20;i<20000;i+=1000)

{sound(i);delay(j);nosound();}

}

class address{ protected :

char hno[10],city[30],post[30],colony[30],pin[10];

public :

void address_inp()

{

cout<<"

House No. : ";gets(hno);

cout<<"

Colony :

";gets(colony);

cout<<"

Post : ";gets(post);

cout<<"

City : ";gets(city);

cout<<"

Pin Code No. : ";gets(pin);

}

void address_out()

Page 6: Airline Reservation System

{

cout<< hno<<" , "<<colony<<" , "<<post<<" ,

"

<<city<<" - "<<pin;

}

};

class p_det

{

protected :

address add;

float age;

char name[40];

char sex;

public:

void p_det_inp()

{ colyb();

cout<<"

Enter Name : ";gets(name);

cout<<"

Enter address ";

add.address_inp();

cout<<"

Page 7: Airline Reservation System

Enter age (Years.Months) :

";cin>>age;

cout<<"

Enter sex group (M / F) :

";cin>>sex;

}

void p_det_out()

{ colyb();

cout<<"

PERSONAL DETAILS";

cout<<"

Name :

";puts(name);

cout<<"

Adress : ";

add.address_out();

cout<<"

Age (Years.Months) : ";cout<<age;

cout<<"

Sex group (M/F) : ";cout<<sex;

delay(500);

}

void assign_name(p_det p,char str[]);

Page 8: Airline Reservation System

};

void p_det :: assign_name(p_det p,char str[])

{

strcpy(str,p.name);

}

class dat{

int dd,mm,yy;

public :

void dat_inp()

{

h:

cout<<" date :

dd : ";cin>>dd;

cout<<" mm : ";cin>>mm;

if((dd>31) || (mm>12))

{

cout<<"the date is invalid";

goto h;

}

cout<<" yy : ";cin>>yy;

}

Page 9: Airline Reservation System

void dat_out()

{

if( (dd>0 && dd<31) && (mm>0 && mm <13) )

{

cout<<"

DATE : "

<<dd<<" # "<<mm<<" # "<<yy;

delay(500);

}

}

};

class res :public dat

{

char fcode[5];char to[15],from[15],via[15];

float fare;

public :

p_det p;

void dest_out(){cout<<"

from : ";puts(from);cout<<"

via

:

";puts(via);cout<<"

to : ";puts(to);}

void res_inp()

Page 10: Airline Reservation System

{ textcolor(RED); clrscr();

res_menu();

cout<<"

RESERVATION FORM";

cout<<"

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

cout<<"

Enter flight code : ";gets(fcode);

if( strcmp(fcode,"0871")==0 )

{

strcpy(from,"LUCKNOW");strcpy(to,"DELHI");strcpy(via,"ÄÄ");

fare=100;

}

else if(strcmp(fcode,"0037")==0)

{

strcpy(from,"LUCKNOW");strcpy(to,"CHENNAI");strcpy(via,"DELHI");

fare=700;

}

else if(strcmp(fcode,"1070")==0)

{

strcpy(from,"DELHI");strcpy(to,"COCHIN");strcpy(via,"ÄÄ");

fare=730;

}

else if(strcmp(fcode,"1007")==0)

{

Page 11: Airline Reservation System

strcpy(from,"DELHI");strcpy(to,"BANGALORE");strcpy(via,"ÄÄ");

fare=800;

}

else if(strcmp(fcode,"1017")==0)

{

strcpy(from,"LUCKNOW");strcpy(to,"BANGALORE");strcpy(via,"DELHI");

fare=850;

}

else if(strcmp(fcode,"7001")==0 )

{

strcpy(from,"ALLAHBAD");strcpy(to,"DELHI");strcpy(via,"ÄÄ");

fare=80;

}

else

{ coldes(1+128,0);clrscr();

cout<<"

ERROR";saund(30);delay(1000);

strcpy(from,"ERROR");strcpy(to,"ERROR");strcpy(via,"ERROR");exit(0);

}

p.p_det_inp();

dat_inp();

getch();

Page 12: Airline Reservation System

clrscr();

}

void res_out()

{

cout<<"

RESERVATION ENTRIES";

cout<<"

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

cout<<"

Flight Code : ";puts(fcode);

p.p_det_out();

dest_out();

dat_out();

}

friend void assign_code(res p,char str[]);

};

void assign_code(res p,char str[])

{

strcpy(str,p.fcode);

}

void menu()

{

coldes(13,9);clrscr();

Page 13: Airline Reservation System

clrscr();

cout<<"

MENU";

cout<<"

ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ

ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ";

cout<<"

1 . Reservation";

cout<<"

2 . Querries";

cout<<"

3 . Cancellation";

cout<<"

4 . Help";

cout<<"

5 . Exit";

cout<<"

ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ

ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ";

delay(1200);

cout<<"

";

Page 14: Airline Reservation System

textcolor(BLINK+YELLOW);

cprintf(" Press any key to

continue ...");

getch();

textcolor(YELLOW);

}

void res_menu()

{

textcolor(YELLOW);textbackground(8);

cout<<"

";saund(15);

cout<<" ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»

";

cout<<" ³ SAHARA AIRLINES ³

";

cout<<" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ1/4

";

cout<<" RESERVATION / ROUTE / FARE MENU

";saund(15);

cout<<" ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ

";saund(15);

cout<<"ÛÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ

ÜÜÜÜÜÜÜÜÜÜÜÜ ";s(10000,500);

Page 15: Airline Reservation System

cout<<" ³ SN ³ FROM ³ TO ³ VIA ³F.CODE³ TIMING ³

DAY

³ FARE ³ ";s(10000,500);

cout<<" ³ ³ ³ ³ ³ ³ (ARR)³(DEP) ³

³ ($) ³ ";s(10000,500);

cout<<" ³ 1 ³ LUCKNOW ³ DELHI ³ ßßßßß ³ 0871 ³ 1530 ³ 1615 ³

MONDAY ³ 100 ³ ";s(10000,500);

cout<<" ³ 2 ³ LUCKNOW ³ CHENNAI ³ DELHI ³ 0037 ³ 1200 ³ 1230 ³

THURSDAY ³ 700 ³ ";s(10000,500);

cout<<" ³ 3 ³ DELHI ³ COCHIN ³ ßßßßß ³ 1070 ³ 1740 ³ 1830 ³

FRIDAY ³ 730 ³ ";s(10000,500);

cout<<" ³ 4 ³ DELHI ³ BANGALORE³ ßßßßß ³ 1007 ³ 2040 ³ 2100 ³

SUNDAY ³ 800 ³ ";s(10000,500);

cout<<" ³ 5 ³ LUCKNOW ³ BANGALORE³ DELHI ³ 1017 ³ 1615 ³ 1700 ³

MONDAY ³ 850 ³ ";s(10000,500);

cout<<" ³ 6 ³ ALLAHBAD ³ DELHI ³ ÄÄÄÄÄ ³ 7001 ³ 0845 ³ 0910 ³

SUNDAY ³ 80 ³"; s(10000,500);

cout<<"ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ

ÛÛÛÛÛÛÛÛÛÛÛÛÛ ";s(10000,500);

delay(1000);

saund(50);

textcolor(BLINK+YELLOW);

cprintf(" Press any to continue

...");

getch();

Page 16: Airline Reservation System

}

void main()

{

textcolor(12);

textbackground(8);

int mch;

res r;

int flag=0,rec=0;

char ch;

do { clrscr();

saund(50);

//if(oo>0)restart();oo++;

char name[36],code[5],name1[36],code1[5];

char name2[36],code2[5];

int flag=0;

fstream fin,fin1;

textcolor(YELLOW);

menu();

saund(30);

gotoxy(4,15);

puts(" Enter your choice :

Page 17: Airline Reservation System

");

gotoxy(30,15);

cin>>mch;

switch(mch)

{

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// C A S E 1 : W R I T I N G

//###################################3####################################

#####

case 1: r.res_inp();

fin.open("oldmas.dat",ios::binary |ios::app);

fin.write( (char *) &r,sizeof(r));

fin.close();

fin.open("oldmas.dat",ios::binary |ios::in);

fin1.open("newmas.dat",ios::binary |ios::out);

fin.read( (char*)&r,sizeof(res) );

while(!fin.eof() )

{

fin1.write( (char*)&r,sizeof(res) );

fin.read( (char*)&r,sizeof(res) );

}

Page 18: Airline Reservation System

fin.close();

fin1.close();

break;

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// C A S E : 2 " S E A R C H I N G"

//########################################################################

#####

case 2:

fin.open("newmas.dat",ios::in|ios::binary);

cout<<"

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

Ä";

cout<<"

Enter the name : ";gets(name);

cout<<"

Enter the flight code : ";gets(code);

while( !fin.eof() )

{

Page 19: Airline Reservation System

assign_code(r,code1);

r.p.assign_name(r.p,name1);

if(strcmpi(name1,name)==0 && strcmp(code1,code)==0)

{

clrscr();

cout<<"

aÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

cout<<"

a Welcome to `Sahara Querries' ";

cout<<"

aÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

r.res_out();

rec=1;

cout<<"

aÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

Page 20: Airline Reservation System

cout<<"aÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

cout<<" Press any key to continue"; getch();

}

fin.read((char *)&r , sizeof(res));

}

fin.close(); clrscr();

if(rec==0)

{

coldes(14+128,0);

clrscr();

cout<<"

Record not found in

Reservation

Page 21: Airline Reservation System

Master";

getch();

}

break;

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// C A S E : 3 " C A N C L A T I O N "

//########################################################################

#########

case 3:

cout<<"

enter the name ";

gets(name);

cout<<"

enter the code ";

gets(code);

cout<<"

Checking for record";

fin.open("oldmas.dat",ios::binary | ios::in);

fin1.open("newmas.dat",ios::binary | ios::out);

if(fin==NULL && fin1==NULL)

{

cout<<" No records found in Reservation Master";getch();

Page 22: Airline Reservation System

goto label;

}

else

{ fin.read( (char*)&r,sizeof(res) );

while(!fin.eof() )

{

assign_code(r,code1);

r.p.assign_name(r.p,name1);// cout<<"

name 1 & code1 :

";puts(name1);puts(code1);getch();

if(strcmpi(name1,name)==0 && strcmp(code1,code)==0)

{

cout<<"

record found ";

cout<<"

Deleting.a.a.a.a.";

}

else

{

fin1.write( (char*)&r ,sizeof(res));

}

fin.read( (char*)&r,sizeof(res) );

}

}

Page 23: Airline Reservation System

fin.close();fin1.close();

cout<<"

Record marked for deletion";

getch();

unlink("oldmas.dat");

fin.open("oldmas.dat",ios::app|ios::binary );

fin1.open("newmas.dat",ios::binary |ios::in);

if(fin1==NULL)exit(0);

else

{

fin1.read( (char*)&r,sizeof(res) );

while(!fin1.eof() )

{

fin.write( (char*)&r,sizeof(res) );

fin1.read( (char*)&r,sizeof(res) );

}

}

fin.close();

fin1.close();

label :

break;

Page 24: Airline Reservation System

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// C A S E 4 : H E L P

//########################################################################

#####

case 4:help();break;

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// C A S E 5 : E X I T

//########################################################################

######

case 5:

// for(int a=1;a<5;a++)

{

textcolor(YELLOW+BLINK);clrscr();

puts("

Exiting . . .

Page 25: Airline Reservation System

please wait");

saund(70);

// delay(10);nosound();saund(20);nosound();delay(150);

}

exit(1);

break;

default :

cout<<"Out of choice !!!

Try Again (y/n) : ";

cin>>ch; break;

}

// END OF SWITCH

}while( (mch>0 && mch<6) || (ch=='y' || ch=='Y') );

delay(2000);

}

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// END OF MAIN

//########################################################################

######

Page 26: Airline Reservation System

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// H E L P M E N U

//########################################################################

######

void help()

{ coldes(13,8);

clrscr();

cout<<"

Welcome to online 'HELP'";

delay(700);

cout<<"

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

cout<<"

You are provided with irlines 'MENU'

";

cout<<"

Page 27: Airline Reservation System

According to your need , you may

";

cout<<"

choose any valid option & enter your

";

cout<<"

choice . ";

delay(2000);

cout<<"

Example ";delay(700);

clrscr();

delay(1500);

cout<<"

Welcome to online 'HELP'";

cout<<"

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ";

delay(2000);

menu();

for(int i=0;i<53;i++)

{

gotoxy(i+28,19);

puts(" ¯Äį");

delay(50);

Page 28: Airline Reservation System

}

cout<<" If your choice is reservation ,

number to be input is

1";

cout<<" press any key to continue";

getch();

}

//ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

ÄÄÄÄÄÄÄÄÄÄ

// E N D O F P R O G R A M M E

//########################################################################

####