Wa0007.
Wa0007.
Wa0007.
TABLE OF CONTENTS
ANNEXTURE-III
LIST OF TABLES
1. INTRODUCTION
operating
• To provide accurate information about the addition, deletion and modified movie’s
record.
• To provide, efficient, accurate, reliable, fast, and robust structure that can handle any
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 intrinsic nature of file handling, the
retrieval process is slow when we search a particular record in the database, because record
is searched sequentially.
Need of Computerisation
A few factors that directs us to develop a new system are given below -:
1) Faster System
2) Accuracy
3) Reliability
4) Informative
5) Reservations and cancellations from any where to any place
➢ Database and database systems have become an essential component of everyday life
in modern society. In the course of a day, most of us encounter several activities that
involve some interaction with the database. For example, if we go to the bank to
deposit or withdraw funds or if we make a Hotel or Airline Reservation, chances are
that our activities will involve someone accessing a database.
➢ The above interactions are examples of what we may call traditional database
applications, where most of the application that is stored and accessed is either textual
or numeric. In our project we will concentrate on this aspect of computer application.
➢ There are several ways to implement databases. Some of them are file handling
mechanism, relational database, object-relational database or object-oriented
databases. In our project we will use file-handling feature provided by C++ Language.
➢ This program shows you an insight into the management process of reservation in
Airline Management system. The whole process of Airline Management System is
shown with the help of this project. It provides facility to add/Modify/Delete/search
Airline Management details. and provide facility to view the list of Team .
➢ Facility to view the list of Team .
2. PROBLEM SELECTION
Airline Management System
1. Before making this application, we assumed that an airline which had recently started
its operation found it very difficult to handle their customers.
2. It was due to their great customer service and efficient handling of daily operations
that they customer base started growing and in a day, they started to handle lot of
customer requests. The problem is that in manual airline record keeping system,
excessive staff employment is required, extremely time consuming process is
involved, inconveniences to both customers as well as to the manager.
3. Slowly & slowly the count of such customers started to grow very rapidly and the
airline employees had to devote their maximum time in handling such customers.
4. Slowly, an airline started loosing its important or gold customers due to poor response
times by the employees and they even started loosing those customers whose requests
could not be fulfilled.
5. After this, the management decided to install a system that can effectively &
efficiently service the request of such customers and can the corresponding work of
its employees who were overburdened with such tasks.
6. This action was a step towards serving important or fresh customers with a minimum
possible and improve the response times & efficiency of an airline employees.
The earlier experiences have shown that manual monitoring of employee enquiries about
their loans, conveyance, etc. Often fails to achieve the desired targets, mainly because of
the following reasons:
➢ Much time required in giving correct information.
➢ Less reliability and maintainability of data.
➢ Secrecy of information may not be maintained due to visible facts on paper.
➢ Manual procedure of providing information is not reliable.
An object oriented system draws upon class definitions that are derived from the analysis
model. Some of the definitions will have to be built from scratch but many other can be
reused if appropriate design patterns are recognized. Object oriented design establishes a
design blueprint that enables a software engineer to the object oriented architecture in a
manner that maximized reuse, thereby improving development speed and product quality.
➢ The Subsystem Layer: It represents each of the sub systems It represents each of the
subsystems that enable the software to achieve its user-defined requirements and to
implement the technical infrastructure.
➢ The Class and Object Layer: It contains the class hierarchies that enable the system
to be created using generalizations and increasingly more targeted specializations.
➢ The Message Layer: It contains the design details that enable each object to
communicate with its collaborators. This layer establishes internal and external
interfaces for the software.
Airline Management System
➢ The Responsibility Layer: It contains the data structure and algorithmic design for
all attributes and operations for each object. Monitoring system activity and server
performance is a necessary part of preventive maintenance for the server. Through
monitoring, you obtain data that u can use to diagnose system problems, plan growth
and trouble shoot problems. You can use the monitoring and status tool, diagnostic
logging, extended logging and queue viewer to keep the data up-to-date.
The proposed system is computer based, user friendly, and easy to maintain. It makes safely
storing of records easy and for a very long period of time. It would significantly improve
the quality of work in the airport. The time spent in processing the above mentioned queries
would significantly reduce. The proposed system provides free, easy and efficient
management of the day-to-day activities of the passenger’s in airline so that the manual
work can be reduced and even minute details can be accessed easily.
Airline Management System
1. The first point is where the user enters his account & pin no. This is the most
important part of our application because the information which would be fetched
& is displayed to the user is confidential and it should be displayed only after proper
authentication. So, for security reasons, we have given only one chance to the user
to enter his pin correctly. If he does not, the system issues a warning through a
proper message and exits. The user then again has to swipe his card, enter his
account & pin no. to view the account details or undertake any account activity.
2. The second point where this is implemented is the menu where the user chooses
from a list of options to process his requests. Since this is a menu-driven program,
we expect from the user to input correct option. But if, for some reason, the user is
unable to enter it correctly, we flash a message which requests the user to enter
a correct option.
3. The third point where we have taken care of user input is the place where user wants
to withdraw money from his account. Ideally, the user should not enter the
withdrawal amount greater that his total amount and if mistakenly he does, the
system flashes a user message and inform him about the same.
4. SYSTEM STUDY
Airline Management System
5. SYSTEM ANALYSIS
The analysis model must achieve three primary objectives:-
Airline Management System
By making the manual system computerized, we can ensure complete utilization of our
existing resources. Automation helps in generating the reports / information in a consistent
way, which saves time and labour if done manually.
In this project we have used Rapid Application Development (RAD) model. RAD is an
incremental software development process model that emphasizes an extremely short
development cycle. The following phases are encompassed:
➢ Business modeling: All the information about the business functioning of the Airways
department is collected, how the data and information is flow from one end to another end
using the following questions: What information drives the department process? What
information is generated? Who generates it? Where does the information go? Who process
it?
➢ Data modeling: The information collected in Business modeling phase is refined into a
set of data objects that are needed to support the project. The attributes of each object are
identified and the relationships between these objects defined.
➢ Process modeling: Processing descriptions and functions like adding, modifying,
deleting records, printing reports, providing information, file handling etc. are created.
sense are required for collection of the information needed to do the analysis. Once
analysis is completed, the analyst has a firm understanding what is to be done. The
next step is to decide how the problem might solve. Thus, in systems design, we move
from the logical to the physical aspects of the life cycle.
➢ The decision to acquire computer hardware or software must be handled in the same
way as any other business decision. The variety of sizes and types of computing
resources available puts a burden on the analyst who must select suitable hardware,
software or services and advise the top management accordingly.
➢ Today, selecting a system is a serious and time-consuming business. The time spent on
the selection process is a function of the applications and whether the system is a basic
micro- computer or a mainframe. In either case, planning system selection and
acquiring experienced help where necessary pay off in the long run.
There are various important factors, which should be considered prior to system
selection. They are:
➢ Define system capabilities that make sense for the business.
➢ Specify the magnitude of the problem, i.e., clarify whether selection entails a few
peripherals or a major decision concerning the mainframe.
➢ Assess the competence of the in-house staff.
➢ Hardware and software should be considered as a package.
➢ Develop a time frame for the selection process.
➢ Provide user indoctrination.
This is crucial, especially for first-time users. Selling the system to the user staff, provide
adequate training and creating an environment conductive to implementation are
prerequisites for system acquisition.
The selection process should be viewed as a project and a project team should be formed
with the help of management. The selection process consists of several steps, which are
discussed below:
Airline Management System
➢ Requirements analysis: The first step in selection understands the user's requirement
within the framework of the organization’s objectives and the environment in which
the system is being installed.
➢ System specifications: System specifications must be clearly defined. These
specifications must reflect the actual applications to be handled by the system and
include system objectives, flowcharts, input-output requirements, file structure and
cost.
➢ Request for proposal: After the requirement analysis and system specifications have
been defined, a request for proposal is prepared and sent to selected vendors for
bidding.
➢ Evaluation and validation: The evaluation phase ranks various vendor proposals and
determines the one best suited to the user's requirements. It looks into items such as
price, availability and technical support. System validation ensures that the vendor
can, in fact, match his/her claims, especially system performance.
➢ Vendor selection: This step determines the vendor with the best combination of
reputation, reliability, service record, training, delivery time, lease/finance terms. The
selected vendors are invited to give a presentation of their system. The system
chosen goes through contract negotiations before implementation.
5.1 SDLC
In this project we have followed the Waterfall model.
The waterfall model is the most familiar model. This model has five phases:
requirements analysis and specifications, design, implementation and unit testing,
integration and system testing, and operation and maintenance.
Airline Management System
Requirements analysis
& specification
Design
Integration &
System testing
Operation &
maintenance
Fig. 1
Login
Manage
User
Cancelatio
n or
deletion
Reservatio
Administrator n of Ticket
Ticket
cancelatio
n
Updation
Checking
of Seats
Fig. 2
Data flow diagrams are commonly used during problem analysis. Data flow diagrams are
quite general and not limited to problem analysis for software requirement specification.
A DFD shows the flow of data through a system. It views a system a function that
transforms the inputs into desired outputs. Any complex system does not perform this
transformation into a single step and a data will typically undergo a series of transformation
before it becomes an output. The DFD aims to capture the transformations that take place
within a system to the input data so that eventually the output data is produced.
The agent that performs the transformation of data from one state to another is called a
process. So, a DFD shows the movement of data through the different transformations or
processes in the system. Named circles show the processes and data named arrows entering
or leaving the bubbles represent flows.
Process Activity
The rectangle represents a source and sink and is a net originator or consumer of data. A
source or sink is typically outside the main system of study.
File name
The need ofr multiple data flows by a process is represented by a “*” between the data
flows.the symbol represents the AND relationship.for example, if there is a “*” between
Airline Management System
the two input data flows A and B for a process,it means that A AND B are needed for the
process.
*
B
Passenger’s File
Save
Record
Airline Management System
Fig. 4
Admin/Man
ager
Login
Add/delet
ADMI e
N Flight Flight .Data
Add/delete
User
Search/view
flight
Manager
Reservation/
Cancellation
Print Details
1. LOGIN
Manager
New user
Login Admin
Admin/Manager
2. TICKETS
Access Flight
info
Retrieve Flight
Display info
flight list
Admin
Flight info
Enter/update/delete
Validate
Flight info
Flight info
3. CUSTOMER
Access customer
info Retrieve
Display customer info
customer
Airline Management System
5.4 ER DIAGRAM
An entity-relationship (ER) diagram is a specialized graphic that illustrates the
interrelationships between entities in a database. ER diagrams often use symbols to
represent three different types of information. Boxes are commonly used to represent
entities. Diamonds are normally used to represent relationships and ovals are used to
represent attributes. If the application is primarily a database application, the entity-
relationship approach can be used effectively for modeling some parts of the problem.
The main focus in ER modeling is the Data Items in the system and the relationship
between them. It aims to create conceptual scheme for the Data from the user’s
perspective. The model thus created is independent of any database model. The ER
models are frequently represented as ER diagram. Here we present the ER diagram of the
above mentioned project.
Airline Management System
E-R DIAGRAM
Airlines
Passenger Reserves
Airlines
Ticket
5.5 FLOWCHART
In procedural language program is started with the first line and follow a pre-define Path.
Flow chart is used to define that pre-defined path and it show the flow of control
throughout the program. The flow charts are used in programming for purpose of
indicating the sequence of Operation of Program. It is very useful tool available for the
programmer to generate method of writing the program and statement of program. It
creates sequence of operations and indicated transfer of control in an effective manner.
The flow charts use symbol’s or blocks of different shapes for representing statement of
program.
A flowchart is a common type of diagram that represents an algorithm or process,
showing the steps as boxes of various kinds, and their order by connecting these with
arrows. Flowcharts are used in analyzing, designing, documenting or managing a process
or program in various fields.
Airline Management System
FLOW CHARTS
Start
To booking domestic A
Ticket
To booking B
international Ticket
To confirm the C
Ticket
Exit
Stop
Is Valid No
Data ?
Yes
Return
Airline Management System
Is Valid No
Data?
Yes
Return
Airline Management System
Enter Name
Found?
No
Yes
Return
Airline Management System
Found
No
Yes
Return
Airline Management System
Enter Name
Found?
No
Yes
Return
Airline Management System
Found
No
Yes
Return
Airline Management System
6. SYSTEM DESIGN
The systems objectives outlined during the feasibility study serve as the basis from which
the work of system design is initiated. Much of the activities involved at this stage is of
technical nature requiring a certain degree of experience in designing systems, sound
knowledge of computer related technology and thorough understanding of computers
available in the market and the various facilities provided by the vendors. Nevertheless, a
system cannot be designed in isolation without the active involvement of the user. The user
has a vital role to play at this stage too. As we know that data collected during feasibility
study will be utilized systematically during the system design. It should, however, be kept
in mind that detailed study of the existing system is not necessarily over with the
completion of the feasibility study. Depending on the plan of feasibility study, the level of
detailed study will vary and the system design stage will also vary in the amount of
investigation that still needs to be done. This investigation is generally an urgent activity
during the system design as the designer needs to study minute’s details in all aspects of
the system. Sometimes, but rarely, this investigation may form a separate stage between
Feasibility Study and Computer System Design. Designing a new system is a creative
process, which calls for logical as well as lateral thinking. The logical approach involves
systematic moves towards the end product keeping in mind the capabilities of the personnel
and the equipment at each decision making step. Lateral thought implies encompassing of
ideas beyond the usual functions and equipment. This is to ensure that no efforts are being
made to fit previous solutions into new situations.
The system design process is not a step-by-step adherence of clear procedures and
guidelines. Though, certain clear procedures and guidelines have emerged in recent days,
but still much of design work depends on knowledge and experience of the designer.
When designer starts working on system design, he will face different type of problems.
Many of these will be due to constraints imposed by the user or limitations of the hardware
and software available in the market. Sometimes, it is difficult to enumerate the complexity
of the problems and solutions thereof since the variety of likely problems is so great and
no solutions are exactly similar. However, following considerations should be kept in mind
during the system-designing phase:
The primary objective of the design: Of course, is to deliver the requirements as specified
in the feasibility report. In general, the following design objectives should be kept in mind:
➢ Practicality: The system must be stable and can be operated by people with average
➢ Efficiency: This involves accuracy, timeliness and comprehensiveness of the system
➢ output.
➢ Cost: it is desirable to aim for a system with a minimum cost subject to the condition
that it must satisfy all the requirements.
➢ Flexibility: The system should be modifiable depending on the changing needs of the
user. Such modifications should not entail extensive reconstructing or recreation of
software. It should also be portable to different computer systems.
➢ Security: This is very important aspect of the design and should cover areas of hardware
reliability, fall back procedures, physical security of data and provision for detection of
fraud and abuse.
System design involves first logical design and then physical construction of the system.
The logical design describes the structure and characteristics of features, like the outputs,
inputs, files, databases and procedures. The physical construction, which follows the
logical design, produces actual program software, files and a working system.
➢ Software: The available software (operating system, utilities, language etc.) in the
market will constrain the design.
➢ Budget: The budget allocated for the project will affect the scope and depth of design.
➢ Time-scale: The new system may be required by a particular time (e.g. the start of a
financial year). This may put a constraint on the designer to find the best design.
➢ Interface with other systems: The new system may require some data from another
computerized system or may provide data to another system in which case the files must
be compatible in format and the system must operate with a certain processing cycle.
Processing Techniques:
The processing options available to the designer are:
➢ Batch processing
➢ Real-time processing
➢ On-line processing
➢ A combination of all the above
You are already aware of these techniques. It is quite interesting to note, however, that a
combination of these is often found to be ideal in traditional data processing applications.
This increases throughput of the system as also brings down the response time of on-line
activities. In most of die business applications, 24-hour data is acceptable enough and
hence it is possible to update voluminous data after office-hours in batch mode.
Several development activities are carried out during structured design. They are data base
design, implementation planning, system test preparation, system interface specification,
and user documentation.
➢ Data base design: This activity deals with the design of the physical database. A key is
to determine how the access paths art to be implemented.
➢ Program design: In conjunction with database design is a decision on the programming
language to be used and the flowcharting, coding, and debugging procedure prior to
conversion. The operating system limits the programming languages that will run of the
system.
➢ System and program test preparation: Each aspect of the system has a separate test
requirement. System testing is done after all programming and testing completed the test
cases cover every aspect of the proposed system, actual operations, user interface and so
on. System and program test requirements become a part of design specifications - a pre
requisite to implementation.
EXTERNAL COUPLING
A form of coupling in which has a dependency to other module, external to the software
being developed or to a particular type of hardware.
COMMON COUPLING
With common coupling, module A and B have shared data. Global data areas are
commonly found in programming languages. Making a change to the common data means
tracing back to all the modules which access that data to evaluate the effect of change.
CONTENT COUPLING
Content coupling occurs when module A changes data of module B or when control is
passed from one to the middle of another.
X and Y both must perform around the same time. So, module exhibits temporal cohesion
when it contains tasks that are related by the fact that all tasks must be executed in the same
time-span.
LOGICAL COHESION
X and Y perform logically similar operations. Therefore, logical cohesion occurs in
modules that contain instructions that appear to be related because they fall into the same
logical class.
COINCIDENTAL COHESION
X and Y here no conceptual relationship other than shared code Hence, coincidental
cohesion exists in modules that contain instructions that have little or no relationship to
one another.
in which individual software modules are combined and tested as a group. It follows unit
testing and precedes system testing.
Integration testing takes as its input modules that have been unit tested, groups them in
larger aggregates, applies tests defined in an integration test plan to those aggregates, and
delivers as its output the integrated system ready for system testing.
Integration testing concentrates entirely on module interactions, assuming that the details
within each module are accurate. Module and Integration testing can be combined,
verifying the details of each module's implementation in an integration context. Many
projects compromise, combining module testing with the lowest level of subsystem
integration testing, and then performing pure integration testing at higher levels. Each of
these views of integration testing may be appropriate for any given project, so an
integration testing method should be flexible enough to accommodate them all.
The System testing is bringing together of all programs that a system comprises for testing
purposes. System testing is testing conducted on a complete, integrated system to evaluate
the system's compliance with its specified requirements. System testing falls within the
scope of black box testing, and as such, should require no knowledge of the inner design
of the code or logic. Programs are typically integrated in a top-down, incremental fashion.
It is a series of different tests whose primary purpose is to fully exercise the computer-
based system. It includes the following tests: -
• Recovery Testing: - It is a system test that forces the software to fail in a variety of
ways and verifies that recovery is properly performed.
• Stress Testing:- These are designed to confront program functions with abnormal
situations. It executes a system in a manner that demands resources in abnormal quantity,
frequency or volume.
• Security Testing:- This testing attempts to verify that protection mechanism built into
a system will protect it from unauthorized penetration.
The system testing is an investigatory testing phase, where the focus is to have almost a
destructive attitude and test not only the design, but also the behaviour and even the
believed expectations of the customer. It is also intended to test up to and beyond the
bounds defined in the software/hardware requirements specification(s).
Airline Management System
The customer specifies scenarios to test when a user story has been correctly implemented.
A story can have one or many acceptance tests, what ever it takes to ensure the functionality
works. Acceptance tests are black box system tests. Each acceptance test represents some
expected result from the system. Customers are responsible for verifying the correctness
of the acceptance tests and reviewing test scores to decide which failed tests are of highest
priority. Acceptance tests are also used as regression tests prior to a production release. A
user story is not considered complete until it has passed its acceptance tests. This means
that new acceptance tests must be created each iteration or the development team will report
zero progress.
Testing after the product is code complete. Betas are often widely distributed or even
distributed to the public at large in hopes that they will buy the final product when it is
released.
IMPLEMENTATION
to operation. Critical aspects of conversion are not disrupting the functioning of the
organization. This phase gives us the clears pictures of our new system and all the points
that have been carefully looked in when designing the computerized system.
Sincere efforts were taken for the implementation of the following goals.
➢ Maximizing the output reliability
➢ Maximizing the source test readability
➢ Minimizing the development time.
8. DOCUMENTATION
Airline Management System
/*
|***********************************************************************|
********
| THIS PROGRAMME HELPS
| ====================
|
| (1) A PASSENGER TO BOOKED DOMESTIC FLIGHT
| (2) A PASSENGER TO BOOKED INTERNATION FLIGHT
| (3) A PASSENGER TO CONFIRMED HIS/HER TICKET
| (4) TO VIEW ALL THE MEMBER WHO BOOKED THEIR TICKET
| (5) TO CANCEL YOUR TICKET
|
| (6) TO VIEW ALL THE MEMBER WHO RECENTLY CANCELLED THEIR
| TICKET
|
|***********************************************************************
********
*/
#include<fstream.h>
#include<iostream.h> //FOR COUT,CIN,FLOAT,INT
#include<conio.h> //FOR GETCH,CLRSCR,GOTOXY
Airline Management System
int x=14;
int y=14; // GLOBAL VARIABLES
int ch;
int a;
// FUNCTION DECLARATION
void port(void);
void show(void);
void ichos(void);
void dchos(void);
void wel(void);
void ars(void);
void option(void);
void ticksho();
int cho();
void line(void);
void end(void);
void table(void);
void exit();
Airline Management System
class airport{
private:
char name[30];
char sex[10];
char dest[30];
char meal[10];
char* airways;
char* flno;
public:
char a,b,c,d,e,f,g ;
int age;
float fare;
int time;
void input();
void calculate();
void dcalculate();
void show();
void output();
char *return_name();
char * airport::return_name()
{
Airline Management System
return name;
}
void airport::input()
{
cout<<endl<<endl<<endl<<endl;
cout<<'\t';
cout<<"KINDLY ENTER YOUR";cout<<endl;
cout<<'\t';
cout<<"================= \n\n";
cout<<" "<<"NAME:";gets(name);
cout<<" "<<"-----" <<endl;
cout<<" "<<"AGE:";cin>>age;
cout<<" "<<"----"<<endl;
cout<<" "<<"SEX :";gets(sex);
cout<<" "<<"---";cout<<endl;
gotoxy(x,y); cputs("DATE:");
gotoxy(x+7,y); cputs("/"); gotoxy(x+10,y);cputs("/");gotoxy(x+5,y);
a=getche();
b=getche();
gotoxy(x+8,y);
c=getche();
d=getche();
gotoxy(x+11,y);
e=getche();
f=getche();
cout<<endl<<endl;
Airline Management System
cout<<" "<<"DESTINATION:";gets(dest);
cout<<" "<<"------------"<<endl;
cout<<" "; cout<<"MEAL(VEG OR NON-VEG):";gets(meal);
cout<<" "; cout<<"---------------------\n\n";
cout<<" "<<"THANK YOU"<<endl;
cout<<" "<<"=============="<<endl<<endl;
cout<<" "<<"HAVE A NICE DAY"<<endl;
cout<<" "<<"=======================\n\n";
int i;
for(i=0;i<=239;i++)
{
putch(char(186));}
cout<<endl;
cout<<" "<<"PRESS ANY KEY TO CONTINUE";
} // END OF INPUT()
void airport::calculate()
{
if(!strcmp(dest,"sydney"))
{
fare=10000;
time=1330;
flno="AA-1440";
airways="AUSTRALIAN AIR";
}
else if(!strcmp(dest,"london"))
{
fare= 20000;
time= 2210;
Airline Management System
flno="BA-14";
airways="BRITISH AIRWAYS";
}
else if(!strcmp(dest,"bangkok"))
{
fare=15000;
time= 2330;
flno="TG-87";
airways="THAI AIRWAYS";
}
else if(!strcmp(dest,"frankfurt"))
{
fare=8000;
time=1330;
flno="LF-285";
airways="LUFTHANSA";
}
else if(!strcmp(dest,"paris"))
{
fare=11000;
time=2300;
flno="AF-267";
airways="AIR-FRANCE";
}
else if(!strcmp(dest,"tokyo"))
{
Airline Management System
fare=15000;
time=2210;
flno="JA4200";
airways="JAPANESE AIR";
}
else if(!strcmp(dest,"moscow"))
{
fare=18000;
time= 1240;
flno="AI2LATE";
airways=" AIR-INDIA";
}
else if(!strcmp(dest,"rome"))
{
fare= 28000;
time= 1740;
flno= "AI3LATE";
airways="AIR-INDIA";
}
else if(!strcmp(dest,"atlanta"))
{
fare= 15000;
time= 1150;
flno= "UA3456";
airways="UNITED AIRWAYS";
}
Airline Management System
else if(!strcmp(dest,"newyork"))
{
fare=18000;
time= 2234;
flno= "UA3465";
airways="UNITED AIRWAYS";
}
} //END OF CALCULATE
void airport::dcalculate()
{
if(!strcmp(dest,"delhi"))
{
fare=10000;
time=1330;
flno="dl-1440";
airways="INDIA-AIRLINES";
}
else if(!strcmp(dest,"mumbai"))
{
fare= 20000;
time= 2210;
flno="MU-14";
airways="KINGDOM";
}
else if(!strcmp(dest,"chennai"))
{
Airline Management System
fare=15000;
time= 2330;
flno="CH-87";
airways="FRRANFIN";
}
else if(!strcmp(dest,"kolkata"))
{
fare=8000;
time=1330;
flno="KL-285";
airways="INDIA-AIRLINES";
}
else if(!strcmp(dest,"shimla"))
{
fare=11000;
time=2300;
flno="SH-267";
airways="DECCAN";
}
else if(!strcmp(dest,"jammu"))
{
fare=15000;
time=2210;
flno="JA4200";
airways="INDIA-AIRLINES";
}
Airline Management System
else if(!strcmp(dest,"bangalore"))
{
fare=18000;
time= 1240;
flno="BA2LARE";
airways="KINGDOM";
}
else if(!strcmp(dest,"goa"))
{
fare= 28000;
time= 1740;
flno= "GO3LATE";
airways="JET-AIRWAYS";
}
else if(!strcmp(dest,"dispur"))
{
fare= 15000;
time= 1150;
flno= "DI3456";
airways="INDIA-AIRLINES";
}
else if(!strcmp(dest,"bhopal"))
{
fare=18000;
time= 2234;
flno= "BH3465";
airways="DECCAN";
Airline Management System
} //END OF DCALCULATE
void airport::show()
{
clrscr(); int i;
for(i=0;i<=159;i++)
putch(char(186));
cout<<endl;
int cd=2;
for(i=0;i<=21;i++)
{
putch(char(186));
gotoxy(1,cd);
cd++;
}
for(i=0;i<=159;i++)
putch(char(186));
int ab=2;
gotoxy(80,ab);
for(i=0;i<=21;i++)
{
putch(char(186));
gotoxy(80,ab) ;
ab++;
}
gotoxy(30,4);
cout<<airways;
gotoxy(6,5);
Airline Management System
cout<<"NAME: ";cout<<name;
gotoxy(6,7);
cout<<"AGE: ";cout<<age; gotoxy(25,7); cout<<"SEX:";cout<<sex;
gotoxy(6,9);
cout<<"DESTINATION:";cout<<dest;
gotoxy(30,9);
cout<<"FARE>RS."<<fare;
gotoxy(6,11);
cout<<"DATE:";cout<<a<<b<<"\\"<<c<<d<<"\\"<<e<<f;
gotoxy(6,13);
cout<<"DEPARTURE TIME: ";cout<<time;
gotoxy(6,15);
cout<<"MEAL: "; cout<<meal;
gotoxy(27,17);
cout<<"INSTRUCTIONS";
gotoxy(11,18);
cout<<"1) "<<" EXPLOSIVES NOT ALLOWED ";gotoxy(11,19);
cout<<"2) "<<" NO SMOKING ";gotoxy(11,20);
cout<<"3) "<<" DO NOT DISPOSE OF YOUR TICKET ";gotoxy(25,22);
cout<<"HAVE A NICE JOURNEY";
getch();
clrscr();
} //END OF SHOW
void airport::output()
{
cout<<setw(15)<<name<<setw(15)<<dest<<setw(8)<<""<<a<<b<<"\\"<<c<<d<<"\\"<<
e<<f<<setw(12)<<flno<<setw(6)<<time<<endl;
Airline Management System
getch();
} // END OF OUTPUT
int main()
{
char cha;
clrscr();
airport obj;
fstream nfil,fil;
wel();
clrscr();
ars();
getch();
clrscr();
int f=1;
do
{
option();
clrscr();
a=cho();
switch(a)
{
case 1:
{
port();
clrscr();
dchos();
Airline Management System
clrscr();
fstream fil("book.bat",ios::out|ios::binary|ios::app);
obj.input();
obj.dcalculate();
fil.write((char*)&obj,sizeof(obj));
cout<<endl;
fil.close();
ticksho();
obj.show();
break;
} //end of case(1)
case 2: {
port();
clrscr();
ichos();
clrscr();
fstream fil("book.bat",ios::out|ios::binary|ios::app);
obj.input();
obj.calculate();
fil.write((char*)&obj,sizeof(obj));
cout<<endl;
fil.close();
ticksho();
obj.show();
break;
} //end of case(2)
case 3: {
Airline Management System
port();
clrscr();
char nam[30]; int k=0; int i,res;
fstream fil ("book.bat",ios::in|ios::binary);
//fstream nfil("crimi.bat",ios::out|ios::binary|ios::app);
cout<<endl<<endl;
cout<<" "<<"SEARCH IS ON"<<endl;
cout<<" "<<"============"<<endl<<endl;
cout<<" "<<"PLEASE ENTER YOUR NAME ::"<<endl;
cout<<" ";gets(nam);
cout<<endl;
cout<<" "<<"PLEASE WAIT"<<endl;
while (fil)
{
fil.read((char*)&obj,sizeof(obj));
if(fil.eof()) break;
res=strcmp(nam,obj.return_name());
k++;
if(res==0)
break;
}; //end of while
if(res==0)
{
nfil.write((char*)&obj,sizeof(obj));
cout<<" ";puts(nam);
cout<<" "<<"HAS BOOKED A TICKET"<<endl<<endl;
for(i=0;i<=159;i++)
Airline Management System
putch(char(186));
break;
} // end of if
else
{
cout<<" ";puts(nam);
cout<<" "<<"HAS NOT BOOKED A TICKET"<<endl<<endl;
for(i=0;i<=159;i++)
putch(char(186));
break;
} //end of else
;
//fil.close();
// nfil.close();
// break;
case 4:{
port();
clrscr();
table();
fstream fil ("book.bat",ios::in|ios::binary);
while(fil)
{
fil.read((char*)&obj,sizeof(obj));
if(fil.eof())
break;
Airline Management System
obj.output();
f++;
};
fil.close();
break;
} //end of case(4)
case 5: {
port();
clrscr();
char nam[30]; int k=0; int i,res;
fstream fil ("book.bat",ios::in|ios::binary);
fstream nfil("cancel.bat",ios::out|ios::binary|ios::app);
cout<<endl<<endl;
cout<<" "<<"SEARCH IS ON"<<endl;
cout<<" "<<"============"<<endl<<endl;
cout<<" "<<"PLEASE ENTER YOUR NAME ::"<<endl;
cout<<" ";gets(nam);
cout<<endl;
cout<<" "<<"PLEASE WAIT"<<endl;
while (fil)
{
fil.read((char*)&obj,sizeof(obj));
if(fil.eof()) break;
res=strcmp(nam,obj.return_name());
k++;
if(res==0)
break;
Airline Management System
}; //end of while
if(res==0)
{
nfil.write((char*)&obj,sizeof(obj));
cout<<" ";puts(nam);
cout<<" "<<"HAS CANCELLED A
TICKET"<<endl<<endl;
for(i=0;i<=159;i++)
putch(char(186));
break;
} // end of if
} //end of case (5)
case 6:
{
port();
clrscr();
table();
fstream nfil ("cancel.bat",ios::in|ios::binary);
while(nfil)
{
nfil.read((char*)&obj,sizeof(obj));
if(nfil.eof())
break;
obj.output();
f++;
};
Airline Management System
nfil.close();
break;
} //end of case(6)
}//end of switch
gotoxy(20,20);
cout<<" ";
cout<<"DO YOU WANT TO CONTINUE (Y/N)::";
cin>>cha;
} //end of do
while(cha=='y'||cha=='Y');
end();
getch();
return 0;
} //END OF MAIN
//FUNCTION DEFINATIONS
void ichos(void)
{
cout<<endl; cout<<" "<<"PLEASE CHOOSE YOUR
DESTINATION"<<endl<<endl;
cout<<"==========================================================
=============="<<endl;
cout<<" "<<"S.NO"<<" ";putch(char(186));cout<<" "<<" PLACE "<<"
";putch(char(186));cout<<" AIRLINES ";putch(char(186));cout<<" TIME
";putch(char(186));cout<<" FARE ";putch(char(186));cout<<endl<<endl;
Airline Management System
cout<<"==========================================================
======================";
cout<<" "<<"PRESS ANY KEY TO CONTINUE"; getch();
} //end of ichos();
void port()
{
int mode=VGAHI,driver=VGA;
initgraph(&driver,&mode,"\\tc\\bgi") ;
cleardevice();
for(int i=0;i<130;i+=3)
{ cleardevice();
settextstyle(BOLD_FONT,HORIZ_DIR,6);
outtextxy(100,i,"WELCOME");
outtextxy(185,200," TO ");
outtextxy(50,400-i," AIRPORT");
Airline Management System
}
getch();
closegraph();
} //end of port();
void ars()
{
int mode=VGAHI,driver=VGA;
initgraph(&driver,&mode,"\\tc\\bgi") ;
cleardevice();
for(int i=130;i>=0;i-=1)
{cleardevice();sound(i*10);
settextstyle(SANS_SERIF_FONT,HORIZ_DIR,8);
outtextxy(100,i," AIRLINES");
outtextxy(i+25,200," RESERVATION");
outtextxy(100,400-i," SYSTEM");
}
getch();
closegraph();
} // end of ars();
void wel()
{
int mode=VGAHI,driver=VGA;
initgraph(&driver,&mode,"\\tc\\bgi") ;
cleardevice(); int i,j;
Airline Management System
for( i=0,j=1000;i<130,j>=10;i++,j-=10)
{
for(int k=0;k<100;k+=10)
{
sound(j);
delay(1);}
cleardevice();
settextstyle(TRIPLEX_FONT,HORIZ_DIR,8);
outtextxy(100,i,"DEEPALI'S");
outtextxy(185,200," 'A'LEVEL");
outtextxy(0,400-i," PROJECT ");
}
getch();nosound();
closegraph();
} //end of wel();
void option()
{
int mode=VGAHI,driver=VGA;
initgraph(&driver,&mode,"\\tc\\bgi") ;
cleardevice(); int i,j;
settextstyle(7,HORIZ_DIR,1);
outtextxy(0,50," INPUT(1) TO BOOKED DOMESTIC FLIGHT TICKET");
outtextxy(0,100," INPUT(2) TO BOOKED INTERNATIONAL FLIGHT TICKET");
outtextxy(0,150," INPUT(3) TO CONFIRM YOUR TICKET ");
outtextxy(0,200," INPUT(4) TO VIEW ALL MEMBER,WHO BOOKED TICKETS");
outtextxy(0,250," INPUT(5) TO CANCELLED YOUR TICKET");
outtextxy(0,300," INPUT(6) TO VIEW ALL MEMBER,WHO CANCELLED");
outtextxy(20,450,"Press Any Key");
int wa,va,sa,ea;
Airline Management System
getch();
closegraph();
} //end of option();
void ticksho(void)
{
int mode=VGAHI,driver=VGA;
initgraph(&driver,&mode,"\\tc\\bgi") ;
cleardevice(); int i,j;
for( i=0,j=1000;i<130,j>=10;i++,j-=10)
{
for(int k=0;k<100;k+=10)
{
sound(j);
delay(1);}cleardevice();
settextstyle(TRIPLEX_FONT,HORIZ_DIR,8);
outtextxy(100,i,"HERES");
Airline Management System
outtextxy(185,200,"YOUR");
outtextxy(0,400-i," TICKET ");
}
getch();nosound();
closegraph();
} //end of ticksho();
int cho()
{
int i;
cout<<endl<<endl;
cout<<" "<<"PLEASE ENTER YOUR CHOICE NOW :: ";
cin>>ch;
cout<<endl<<endl;
cout<<" "<<" THANK YOU "<<endl<<endl;
for(i=0;i<=1039;i++)
putch(char(186));
cout<<endl<<endl;
cout<<"==========================================================
======================"<<endl<<endl;
cout<<" "<<" PRESS ANY KEY TO CONTINUE : " ;
getch(); return ch;
} //end of cho();
void end(void)
{
int mode=VGAHI,driver=VGA;
Airline Management System
initgraph(&driver,&mode,"\\tc\\bgi") ;
cleardevice(); int i,j;
for( i=0,j=1000;i<130,j>=10;i++,j-=10)
{
for(int k=0;k<100;k+=10)
{
sound(j);
}
cleardevice();
settextstyle(TRIPLEX_FONT,HORIZ_DIR,8);
outtextxy(100,i,"END OF");
outtextxy(185,200," THE ");
outtextxy(0,400-i," PROJECT ");
}
getch();
nosound();
closegraph();
}//end of end function
void table(void)
{
cout<<endl<<endl<<" AIRPORT RECORDS "<<endl<<endl;
cout<<setw(15)<<"NAME"<<setw(15)<<"DESTINATION"<<" "<<setw(8)<<"
DATE"<<setw(12)<<" FLIGHT.NO"<<setw(6)<<"TIME"<<endl;
cout<<"------------------------------------------------------------------------------
"<<endl<<endl;
}
Airline Management System
void dchos(void)
{
cout<<endl; cout<<" "<<"PLEASE CHOOSE YOUR
DESTINATION"<<endl<<endl;
cout<<"==========================================================
=============="<<endl;
cout<<" "<<"S.NO"<<" ";putch(char(186));cout<<" "<<" PLACE "<<"
";putch(char(186));cout<<" AIRLINES ";putch(char(186));cout<<" TIME
";putch(char(186));cout<<" FARE ";putch(char(186));cout<<endl<<endl;
cout<<"==========================================================
======================";
cout<<" "<<"PRESS ANY KEY TO CONTINUE"; getch();
} //end of dchos();
Airline Management System
Screen layout: - Screen layout section describes the flow of all the Input and output
window along with its layout and its functionality.
These are the layouts if the entire project, which will help to know a bit more about this
project. Through these layouts the process of learning will become easy and anyone can
understand it in a better way.
A final step in system performance definition is describing the outputs required by the user.
An actual sketch of the format and contents of the reports (layout) are as follow from the
next page:
SCREENS SHOTS
Airline Management System
Airline Management System
Airline Management System
Airline Management System
Airline Management System
9. CONCLUSION
Scope of this project is to replace the manual work of movie shop mgmt. system with the
new advanced computerized system. User does not need much training to use this software,
as this software is very user friendly and easy to use. It replaces all the paper work also. In
this software we can store thousands of records. It replaces all the calculation works also
as it automatically calculate and print the bill. Some main advantages are:-
BIBLIOGRAPHY
Airline Management System
REFRENCE BOOKS
The ‘C’ Programming language by Kernighan & Ritchie, Prentice Hall Publishing house,
Copyright 1988.
WEB REFERENCES
www.cprogramming.com/tutorial.html
www.cplusplus.com/doc/tutorial/
www.coronadoenterprises.com/tutorials/cpp/index.html/
Airline Management System
APPENDICES
Airline Management System
A Synopsis
AIRLINES MANAGEMENT SYSTEM
TABLE OF CONTENTS
2. Software requirements
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 intrinsic nature of file
handling, the
retrieval process is slow when we search a particular record in the database,
because record
is searched sequentially.
Need of Computerisation
A few factors that directs us to develop a new system are given below -:
6) Faster System
7) Accuracy
8) Reliability
9) Informative
10) Reservations and cancellations from any where to any place
Airline Management System
2.2 Purpose
An airline provides air transport services for passengers generally with a recognized
operating certificate or license. Airlines lease or own their aircraft with which to
supply these services and may form partnerships or alliances with other airlines for
mutual benefit. Airlines vary from those with a single airplane carrying mail or
cargo, through full-service international airlines operating hundreds of airplanes.
Airline services can be categorized as being intercontinental, intra continental,
domestic, or international and may be operated as scheduled services or charters.
Airline Management System
unstructured.
Technical system With the advent of latest technology if we do not update our
This option provides user the to booked domestic flight ticket in this airlines
system.
This option provides user the facility to enter information related to any passenger
who wanted to reserve a ticket international flight available in the system.
❑ TO CONFIRM TICKET:-
This option provides facility to confirm ticket who may have booked a ticket in any
flight available in the system.
This option provides facility to view all information related to passenger who has
booked a ticket in any flight available in the system.
❑ TO CANCEL TICKET:-
This option provides facility to cancelled ticket who may have booked a ticket in
any flight available in the system.
This option provides facility to view all information related to passenger who has
cancelled ticket.
To run this project successfully it is required that certain software and hardware
requirements should be kept in mind. Following are the requirements:
Hardware Requirements:
Pentium - II to IV
Ram –32MB
H.D .space - 4xGB
FD
CD ROM DRIVE - 52x
Software Requirements: