Professional Documents
Culture Documents
Shubhangi Ams1
Shubhangi Ams1
TABLE OF CONTENTS
ANNEXTURE-III
LIST OF TABLES
1. INTRODUCTION
operating
To provide accurate information about the addition, deletion and modified movies
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
Airline Management System
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 .
Airline Management System
2. PROBLEM SELECTION
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.
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.
Airline Management System
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.
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 passengers 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
Airline Management System
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
Our proposed system works to minimize the human errors, take less time, easy
interaction with user, bug free.
5. SYSTEM ANALYSIS
The analysis model must achieve three primary objectives:-
1. To describe the requirements of the customer.
2. To establish a basis for the creation of a software design.
3. To define a set of requirements that can be validated once software is built.
An Overview to system analysis
The system analysis phase is considered to be one of the most important phases in the
system development life cycle. It is immensely important that the software developer
make through study of the existing system. Thorough study of the system is made and
need i.e. features that are critical to system success and users wants (i.e. features that
would be good but not essential) are brought out. The study will enable the developer to
know the intricacies of the existing system.
Requirement analysis is done in order to understand the problem which the S/W
system is to solve e.g., the problem could be automating the existing manual system or
developing a completely new automated system or a combination of the two. For large
systems having a large number of features and the need to perform many different tasks,
understanding the requirement of the system is a major task. The emphasis in requirement
analysis is on identifying what is needed from the system, and not how the system
achieves its goal.
The main objective behind any business organization is to maximize its profit besides
maintaining quality and strategic norms. This can be achieved by improving the
efficiency of the system by providing more facilities using automation, by adopting faster
data access, proper communication. , whereas the main objective behind automation is
not only to maximize profit but also to take care of passengers interest by providing
them better facilities.
Airline Management System
The most important objective behind automation is to minimize Paper Work. Paper
Work/Registers are replaced by a Centralized Data Bank, which is well equipped to
store / provide information as and when required. Data Bank also helps speed up the
interactions within those systems. This field is closely related to operations results It is
also "An explicit formal inquiry carried out to help someone, referred to as the decision
maker, identify a better course of action and make a better decision than he might have
otherwise made."
Systems analysis researchers apply mathematical methodology to the analysis of the
systems involved trying to form a detailed overall picture.
The development of a computer-based information system often comprises the use of a
systems analyst. When a computer-based information system is developed, systems using
computer hardware/software), what the system would be used for etc.analysis would
constitute the following steps:
The development of a feasibility study, involving determining whether a project is
economically, socially, technologically and organizationally feasible.
Conducting fact-finding measures, designed to ascertain the requirements of the
system's end-users. These typically span interviews, questionnaires, or visual
observations of work on the existing system.
Gauging how the end-users would operate the system.
It refers to the process of examining a business situation with the intent of improving it
through better procedures and methods. Systems development can generally be thought
of as having two major components: Systems Analysis and Systems Design.
Systems design is the process of planning a new system or replace or complement an
existing system. But before this planning can be done, we must thoroughly understand
the existing system and determine how computers can best be used to make its
operation more effective. Systems analysis, then, is the process of gathering and
interpreting facts, diagnosing problems and using the information to recommend
improvement to the system. In brief, we can say that analysis specifies what the system
should do. Design states how to accomplish the objective.
Analysis is a detailed study of the various operations performed by a system and their
relationships within and outside of the system. A key question is: What must be done
to solve the problem? One aspect of analysis is defining the boundaries of the system
and determining whether or not a candidate system should consider other related
Airline Management System
systems. During analysis, data are collected on the available files, decision points and
transactions handled by the present system. There are some logical system models and
tools that are used in analysis. Data flow diagrams, interviews, on-site observations,
and questionnaires are examples. The interview is a commonly used tool in analysis. It
requires special skills and sensitivity to the subjects being interview. Bias in data
collection and interpretation can be a problem. Training, experience, and common
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.
Airline Management System
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:
Requirements analysis: The first step in selection understands the user's requirement
within the framework of the organizations 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.
1.Requirements Analysis and Specification Phase: The goal of this phase is to
understand the exact requirements of the customer and to document them properly.
This activity is usually executed together with the customer, as the goal is to document
all functions, performance and interfacing requirements for the software. The
requirements describes the what of a system, not the how.
2. Design phase: The goal of this is to transform the requirements specification into a
structure that is suitable for implementation in some programming language.
3. Implementation and Unit Testing Phase: During testing, the major activities are
centered around the examination and modification of the code. Initially, small modules
are tested in isolation from the rest of the software product. There are problems
associated with testing a module in isolation. How do we run a module without
anything to call it, to be called by it or, possibly, to output intermediate values obtained
during execution? Such problems are solved in this phase and modules are tested after
writing some overhead code.
4. Integration and System Testing Phase: The purpose of unit testing is to determine
that each independent module is correctly implemented. This gives little chance to
determine that the interface between modules is also correct, and for this reason
integration testing is performed. System testing involves the testing of the entire system
whereas software is a part of the system. This is essential to build confidence in the
developers before software is delivered to the customer or released in the market.
5. Operation and Maintenance Phase: Software maintenance is a task that every
development group has to face, when the software is delivered to the customers site,
installed and is operational. Therefore, release of software inaugurates the operation
Airline Management System
and maintenance phase of the life cycle. The time spent and effort required to keep the
software operational after release is very significant.
Requirements analysis
& specification
Design
Integration &
System testing
Operation &
maintenance
Fig. 1
Airline Management System
Login
Manage
User
Cancelatio
n or
deletion
Reservatio
Administrator n of Ticket
Ticket
cancelatio
n
Updation
Checking
of Seats
Airline Management System
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.
Airline Management System
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
the two input data flows A and B for a process,it means that A AND B are needed for the
process.
*
B
Airline Management System
Passengers File
Save
Record
Request Process
Request for request
Reservation
Request
Provide Tickets
User
Found
Request to Display
Confirm record
Not
Found
Show Error
Message
Airline Management System
Fig. 4
Admin/Man
ager
Login
Admin
New user
Manager
Add/delet
Flight
e
ADMI Schedule
N Flight
Customer Flight .Data
nnumber
Data
Add/delete
User
Search/view
flight
Manager
Reservation/
Cancellation
seats
sseatsseats
Print Details
1. LOGIN
Manager
New user
Login Admin
Admin/Manager
2. TICKETS
Admin
Flight info
Validate
Enter/update/delete
Flight info Flight info
Airline Management System
3. CUSTOMER
Access customer
info Retrieve customer
Display info
customer
list
Admin
Customer info
Create/ delete
Validate
Customer info customer
info
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 users
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 symbols 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 minutes 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.
Airline Management System
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.
TEMPORAL COHESION
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.
level, we will find that it is not as per requirements; then we have to redesign at a lower
level.
TOP- DOWN DESIGN
A top design approach starts by identifying the major modules of the system,
decomposing them into lower level and iterating until the desired level of detail is
achieved. This is a stepwise refinement; starting from an abstract design, in each step the
design is refined to a more concrete level, until we reach a level where no refinement is
needed and the design can be implemented directly. Most design methodologies are based
on this approach is suitable, if the specifications are clear and development is from the
scratch.
HYBRID DESIGN
Hybrid approach has really become popular after the acceptance of reusability of
modules. Standard libraries, Microsoft foundation classes, object oriented concepts are
steps in this direction. We may soon have internationally acceptable standards for
reusability.
Airline Management System
The modules, which are tested in the Unit Testing, are integrated to build the overall
system. It is observed that many errors crop up when the modules are joined together.
Integration testing uncovers these errors while integrating the modules. It helps in
establishing confidence (correctness) in the complete, assembled system. It tests the
System Design. It focus on control, communication, interfaces, performance (other
system qualities). It make use of stubs, test-beds, data generators. It is the phase of
software testing 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.
Airline Management System
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).
7.2 Types of testing
customer conducts these tests and may range from adhoc test to well-planned systematic
series of tests. Acceptance testing may be conducted for few weeks or months. The
discovered errors will be fixed and better quality software will be delivered to the
customer.
Acceptance testing is performed by the customer on a system prior to the customer
accepting delivery or accepting transfer of ownership of that 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
Airline Management 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.
Airline Management System
8. DOCUMENTATION
/*
|***********************************************************************|
********
| 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
|
|
************************************************************************
*******
*/
Airline Management System
#include<fstream.h>
#include<iostream.h> //FOR COUT,CIN,FLOAT,INT
#include<conio.h> //FOR GETCH,CLRSCR,GOTOXY
#include<graphics.h> //FOR GRAPHIC FUNCTIONS(CLOSEGRAPH,LINE)
#include<iomanip.h> //FOR ENDL
#include<string.h> //FOR STRCMP
#include<stdio.h> //FOR GETS,PUTS
#include<dos.h> //FOR SOUND,NOSOUND,DELAY
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();
Airline Management System
void line(void);
void end(void);
void table(void);
void exit();
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()
{
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();
Airline Management System
d=getche();
gotoxy(x+11,y);
e=getche();
f=getche();
cout<<endl<<endl;
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";
Airline Management System
else if(!strcmp(dest,"london"))
{
fare= 20000;
time= 2210;
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;
Airline Management System
flno="AF-267";
airways="AIR-FRANCE";
}
else if(!strcmp(dest,"tokyo"))
{
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"))
{
Airline Management System
fare= 15000;
time= 1150;
flno= "UA3456";
airways="UNITED AIRWAYS";
}
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;
Airline Management System
flno="MU-14";
airways="KINGDOM";
}
else if(!strcmp(dest,"chennai"))
{
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"))
{
Airline Management System
fare=15000;
time=2210;
flno="JA4200";
airways="INDIA-AIRLINES";
}
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";
}
Airline Management System
else if(!strcmp(dest,"bhopal"))
{
fare=18000;
time= 2234;
flno= "BH3465";
airways="DECCAN";
}
} //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));
Airline Management System
gotoxy(80,ab) ;
ab++;
}
gotoxy(30,4);
cout<<airways;
gotoxy(6,5);
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
Airline Management System
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;
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)
{
Airline Management System
case 1:
{
port();
clrscr();
dchos();
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();
Airline Management System
obj.show();
break;
} //end of case(2)
case 3: {
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)
Airline Management System
{
nfil.write((char*)&obj,sizeof(obj));
cout<<" ";puts(nam);
cout<<" "<<"HAS BOOKED A
TICKET"<<endl<<endl;
for(i=0;i<=159;i++)
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();
Airline Management System
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));
Airline Management System
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 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));
Airline Management System
if(nfil.eof())
break;
obj.output();
f++;
};
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;
Airline Management System
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);
Airline Management System
outtextxy(100,i,"WELCOME");
outtextxy(185,200," TO ");
outtextxy(50,400-i," AIRPORT");
}
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()
{
Airline Management System
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,"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");
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);
Airline Management System
delay(1);}cleardevice();
settextstyle(TRIPLEX_FONT,HORIZ_DIR,8);
outtextxy(100,i,"HERES");
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();
Airline Management System
void end(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);
}
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;
Airline Management System
cout<<"------------------------------------------------------------------------------"<<endl<<end
l;
}
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;
} //end of dchos();
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
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
Airline Management System
Pentium
Ram
H.D
FD
CD ROM
2. Software requirements
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.1 Objective
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.
Airline Management System
Hardware Requirements:
Pentium - II to IV
Ram 32MB
H.D .space - 4xGB
FD
CD ROM DRIVE - 52x
Software Requirements: