Sunteți pe pagina 1din 53

AIRLINE

1. sINTRODUCTION

Airline Reservation is an organized knowledge. The Airline Reservation has


wiped out the old miracles of mythology with the practically proven
technological achievement. Association of computer with man's everyday life is
today's Airline Reservation . Thus, the computer is the most useful and vital
research of Airline Reservation Management.

The present Airline Reservation Managementis the computer Airline


Reservation Management. Computers have now become the part of human life.
The are very useful in our day to day life. The world is coming closer through
computerization. Computers play an inertial role in globalization. Computers are
being introduced to each and every field, on order to make the task simple and
easy for the users. As we have entered the twenty first century, time saving is the
essential factor in our life and thus every thing is getting computerized to make
the job easy, simple and time saving, considering this in mind we are creating a
project for the management of a Automotive industries with the computer which
will less time, paperless office, organized work with less human errors
information an finger tips, give maximum satisfaction to their customersas well
as save their energy and economy. This project will help in managing large data
accurately and easily at one place.

Page 1
AIRLINE

2. AIMS AND OBJECTIVES

Before computerization the working of the company was done manually.


Our project will help to systemize the working in a proper manner within short time
and with full accuracy. This helps in minimizing human error, paperless office,
information’s about the data on very easy search printing the details, showing
comparative statements, process of order information remainder if there is any
delays and inaccuracy that might create problems. Earlier the working of all this
process was done manually which was tedious task of handling data and time
consuming a to process an order it would take more time, but with the help of
computerization the data can be managed very easily, efficiently and effectively with
very less time. Thus this project will help in managing large data easily, and
accurately at one place.

This project, for the inventory and accounts management of Automotive


industries performs the following main work.

 Keeping records of Reservation s ordered.

 Keeping records of Reservation s received.

 Maintaining the stock.

 Searching

 Billing.

 Giving the status of the order to the customer

 Giving the printing of all required data

 Give the comparative statements for different orders.

All the information regarding order, order received, selling, billings are stored
at one place. This reduces the job of marking entries at various levels. The updating
is done automatically whenever it is required. It also provides facility of taking hard
copy output of the necessary information.

 Provides computerized bill

Page 2
AIRLINE

 Provides facility of pass word

 Provides facility of Notepad and Calculator

 Provides facility to see the profit gained for the particular day and even more the
used is able to take the hardcopy for this.

 Printing options

 Provides comparative statements

 Searching data according to the requirements.

Page 3
AIRLINE

3. PRELIMINARY SYSTEM ANALYSIS

According to preliminary system analysis the production and use of vehicles


are increasing day by day. Hence, the Airline is very important now days. The
complex functions such as registration of Reservation making of driver’s license, etc.
becomes very difficult if we use the existing system.

To know about the problems, we have done a detailed study on the whole
procedure of the system which is running currently.

Authority in whose jurisdiction the applicant is residing or having his business


and the Reservation is normally kept. The application for registration shall be made in
for, within a periods of 7 days from the date of delivery of such Reservation excluding
the period of journey.

Many people have craze on their Reservation registration numbers. Some of


them want fancy numbers while the others want numbers according to their belief in
the numerical astrology. Whatever it may, it will be interesting to know about the
theory of formation of Reservation registration in the state, keeping it as a unique
identifier for each Reservation.

It is essential that the particulars of every Reservation and its owner should be
available in the concerned department or office of government and the Reservation
should be distinguished from other Reservation by sight. The registration should be
displayed unspecified places and in specified manner. In the registration section,
application for registration of a new Reservation shall be submitted before the
registering.

Preliminary system analysis is the method where the whole system is studied
very intensely and on the basis this analysis a complete product is represented in front
of the customer. The phase which should be studied in the preliminary system
analysis are as follows:

3.1 Preliminary Investigation:


The existing system of Airline office performs functions such as registrations,
license and fitness. There are certain formalities required to perform these functions.

Page 4
AIRLINE

The first step in the system development life cycle is the preliminary
investigation to determine the feasibility of the system. The purpose of the
preliminary investigation is to evaluate project request.

It is neither a design study nor does it includes the collection of details top
describe the business system in all respect. Rather, it is collecting of information that
help committee members to evaluate the merits of the project request and make an
informed judgement about the feasibility of the proposed project.

Here for the “Airline license and new Reservation registration management
system”, I have worked on the preliminary investigation that accomplished the
following objectives:

 Clarify and understand the project request.


 Determine the size of the project.
3.2 Present system in use:

The present system is totally manual system. Which is running without any
participation of computer - definitely have its own disadvantages. We know that the
production and use of vehicles are increasing day by day. Hence the need of Airline is
very important now a days. The complex functions such as registration of Reservation
etc. becomes very difficult if we are using the present system.

In the present system of Airline office performs functions such as registration,


license, and fitness. There are certain procedure and formalities required to perform
these functions.

Security is yet another aspect which in present system carries least importance.
Though security should be given utmost priority, manual system on the contrary, pays
less importance.

The biggest drawback of present system is the unending paperwork, which


involve increased paper cost and maintenance cost. To overcome the shortfalls f
manual system the need of time is to evolve a fully automated system which would
take care of all the aspect of manual system with greater efficiency and accuracy in
reasonable lower costs in addition.

Page 5
AIRLINE

3.3 Flaws in Present System:

The present system contains some problems which are to be removed. Some
of the main flaws are as follows:

a. The main current system is not user friendly.


b. Unable to track all records manually.
c. Important data cannot be kept secret.
d. Due to number of registers the generated are a lot & makes the work
cumbersome.
e. Reports are not being generated in a full view and there is redundancy of
data.
f. It doesn’t have a password facility.
g. Time consuming.

3.4 Need of New System:

New system is been prepared keeping in mind that it deals effectively & more
flexible than the existing system. New system & technologies may allow faster
processing, more storage and lower costs than ever before.

Today, when everything is becoming more and more computerized, one may
feel that the task of keeping the records should also be done automatically using the
computer programs. The system will allow the users of the organization to get perfect
know how.

The need of new system arises due to the following reasons:

a. For maintaining the accurate report need transmitted between departments


so that proper co-ordination can be maintained between them.
b. To maintain such a large number of records, the employee work involved in
these activities are required.
c. The main thing, ‘security’ is also unseen in the manual system.

3.5 Feasibility Study:

Once the decision to go for automated system is taken, it is, as per the system
analysis conventions, necessary to perform feasibility study for new system. The

Page 6
AIRLINE

feasibility study about visibility of system on various grounds. Feasibility analysis


involves following steps:

1. Form a project team and appoint a leader.


2. Prepare system flow chart.
3. Enumerate potential flowchart.
4. Describe and identify characteristics of candidate system.
5. Determined and evaluate performance and cost effectiveness of each candidate
system.
6. Weight system performance and cost data.
7. Select the best candidate system.

Various parameters used for feasibility analysis are as under:

1. Technical feasibility
2. Economic feasibility
3. Operational/behavioural feasibility

The new system is analysed for its feasibility on above parameters. The
process followed in making this determine is called a feasibility study.

3.5 Project Category:

The Airline license and new Reservation registration system is an application


software. Application software is computer software designed to perform a group of
coordinated functions, tasks, or activities for the benefit of the user. This contrasts
with system software, which is mainly involved with running the computer.

This is a computer program designed to help people perform several activity


like To Editing, adding and updating of records is improved which results in proper
management of Reservation data.

Application software can also be seen as being either horizontal or vertical.


Horizontal applications are more popular and widespread, because they are general
purpose, for example word processors or databases. Vertical applications are niche
products, designed for a particular type of industry or business, or department within
an organization.

Page 7
AIRLINE

4. SOFTWARE ENGINEERING PARADIGM APPLIED

4.1 Modules:

1. Login :-The Login Module is a portal module that allows users to type a user
name and password to log in.

2. Users :-They use the site to Reservation and read Reservation and try to
Register for an Reservation .
3. Flight :–It is used for equipmententry.
4. Package Details:-They use the site to sellof product present with them.
5. Reservation: Reservationdetails entry in this form given.
6. Package: In this module Reservation details is given.
7. FlightReport: In this module Flightreport details is given.
8. Customer: In this module Customer details is given.
9. Bill: In this module advance ReservationBill details is given.

Page 8
AIRLINE

4.2 System flowchart:

START

False
LOG IN

True

MAIN FORM

AIRLINE RESERVATION ticket REPORT

CUSTOMER RES. LIST TICKET

DATABASE

AIRLINE REPORT

TICKETREPORT

TICKETREPORT

BILL REPORT

PRINT

STOP

Page 9
AIRLINE

5. SOFTWARE REQUIREMENT AND SPECIFICATION


a. software specification
 java as front end
 MS Access as back end
 Windows 7 as operating System
b. hardware specification
 AMD dual core processor
 Mouse USB mouse
 Keyboard 101 keys keyboard
 Hard disk 20GB+
 monitor 15 “+
c. software requirement specification
(Tools, platform, languages to be used)
Language and database specification
1. Front end
2. Back end
3. Platform
The brief information about this is as follows:

1. Front end: java

Front end is the actual interface provided by software to work with the
software eg. Screens. User enters data through screens which is then processed and
stored in database. The various tools can be used to develop front end like java, D2K
etc. generally a good quality programming language is used which could provide
programming skill, IDE, security, database connectivity etc. here java is used as
front end tool as ASP is comparatively easy to program since screen can be by drag
and drop principle. in java is a method used to create the Graphical user interface
application.

java is front end development java is latest and greatest version of the java
programming language. Although writing program can be a tedious chare at time,
java reduces the effort require on your part and makes programming enjoyable. java
makes aspect of programming as simple as dragging graphic object onto the screen
Page 10
AIRLINE

with your mouse java is more than just a programming language. The secret to java
is in its name: . With today’s windows operating system. Older programming
language, such as java, worked well in a text-only computing environment, but such
language do not support the graphical interface needed for today’s computer.

2. Back end: MS Access

Bank End is Database, the Data to be stored, restored, edited, Modified resides
in Database.In combination with asp.net, MS ACCESS server is the widely used
database some other is MS Access etc., MS ACCESS server is also RDBMS i.e.
relational database Management System. A relational database is a database that
allows you to group its data into one or more distinct tables can be related to one
another by using field’s common to each related table, this relationship can be used to
perform complex search and produce detailed reports.

The MS access it is a full-featured database for the development of an


application. It comes with various graphic, functions, wide range of query design,
reports, etc. No programming required to perform these operations. Data is stored in
the form of tables. The keywords involved in the process are: database file, table,
record. Fields and data-type. Here is the hierarchy that Microsoft access uses in
breaking down a database.

Page 11
AIRLINE

6. DETAILED SYSTEM ANALYSIS


6.1 Data flow diagram:

Add
d
Ticket ticket
delet database
e

Add

Airline main d
Flights Flights
form
delet Database
e

Add
Customer d Customer
Database
delet
e

Ticket Flights
Package Reservation

Delete add update

Reservation
database

Page 12
AIRLINE

6.2 Number of modules and process logic

The Airline management system has total 14 modules in which 1 form is log
in form, 1 form is main form, 7 forms are information entering form and left 5 forms
are the reports. All the modules work efficiently and effectively.

All the modules work in a systematically manner. All the modules has
connected with a process logic. Process logic means a working of logically connected
and processing data. When the coding is going true till then loops counted otherwise
loops goes out.

The information about Airline management system process logic are as


follows:

a. start
b. First, user needs to log in there profile. If the log in true then main form
will get shown, otherwise log in get failed.
c. Next user needs to select an information entering form from main form.
d. If user select any form from the following: Reservation registration,
ownership transfer, state transfer and any license form.
e. If user select Reservation registration form, then he/ she needs to feel all
the required information.
f. Then click on “save” button. Then all the correct data will get store on
assigned database.
g. To see report: user needs to come back on main form, then open the
required reports.
h. Exit

Page 13
AIRLINE

6.3 Data structures and tables:

The data structure is the structure of database, in which the field of the table
and its data type has declared. The data structure & tables that have used are as
follows:

Table: ticket
Sr.no Field Name Type Size Description
1 Reservation_ID Number Long Integer Reservation_ID
2 Name Text 50 Reservationname
3 Flight Number Long Integer Flightdetails

TABLE: Flight

Sr.no Field name Type Size Description


1 FlightID Number Long Integer FlightID
2 Flightname Text 50 Flightname
3 FlightType Text 50 Flighttype
6 Rate Text 50 Rate
7 seats Number Long Integer NO. OF seats

Page 14
AIRLINE

6.4 Entity relationship diagram:

Reserv
nam ation
e
info.
Package id
rate
no
Reser
id Reservation
Reserva vatio
tioninfo n
date
.

addres customer Data Cancelation


s sharing
Sr.
Reserva no.
nam addres
tion nam
e s e
no
nam
addres nam
e no
equip s e
ment Reg
info Tickets no
Airline Report
Compa manageme
ny info. Reservati
nt system
on

info.

Database

Page 15
AIRLINE

7. SYSTEM DESIGN
7.1 Source Code:

Coding for login screen

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

import javax.swing.text.*;

public class LoginPage extends JFrame


{
Container c = getContentPane();
JPanel PFlightTypes = new JPanel(null);
JPanel PLogin = new JPanel(null);
JPanel PFlightDetails = new JPanel(null);

public boolean bCheck=true;

JLabel LDomesticFlight = new JLabel("<html><B>Domestic Flights</B></html>");


JLabel LInternationalFlight = new JLabel("<html><B>International
Flights</B></html>");

JLabel LUserName, LPassword;

JLabel LDomesticFlight1 = new JLabel("<html><B>Domestic Flight


Booking</B></html>");
JLabel LInternationalFlight1 = new JLabel("<html><B>International Flight
Booking</B></html>");

JTextField TFUserName;
JPasswordField TPPassword;

Page 16
AIRLINE

JButton BLogin;

final Object[] col1 ={ "From", "To", "Price", "Time" };


final Object[] col2 = { "From", "To", "Price", "Time" };
final Object[] col3 = { "From", "To", "Price", "Time" };

final Object[][] row1 = { { "Trivandrum", "Bangalore", "3125", "16:30" }, {


"Trivandrum", "Chennai ", "3225", "19:00" }, { "Trivandrum", "Delhi", "1425 ",
"08:30" }, { "Trivandrum", "Goa", "1025 ", "09:50" }, { "Trivandrum", "Hyderabad",
"1525", "11:00" }, { "Trivandrum", "Kolkata", "3825 ", "05:30" }, { "Trivandrum",
"Lucknow", "3025 ", "05:30" }, { "Trivandrum", "Mumbai", "1725", "12:00" }, {
"Trivandrum", "Vishakapatnam", "3725", "19:00" } };
final Object[][] row2 = { { "Trivandrum", "Bali", "21485", "06:20" }, { "Trivandrum",
"Bangkok", "9000", "20:45" }, { "Trivandrum", "Cairo", "22975", "10:25" }, {
"Trivandrum", "CapeTown", "42500", "16:45" }, { "Trivandrum", "Chicago", "35000",
"06:30" }, { "Trivandrum", "Dubai", "12000", "08:15" }, { "Trivandrum", "Frankfurt",
"18500", "06:50" }, { "Trivandrum", "HongKong", "20845", "12:00" }, {
"Trivandrum", "Istanbul", "22000", "10:45" }, { "Trivandrum", "London", "22600",
"14:35" }, { "Trivandrum", "LosAngeles", "35000", "22:00" }, { "Trivandrum",
"Melbourne", "27800", "21:15" }, { "Trivandrum", "New York", "32000", "08:50" }, {
"Trivandrum", "Paris", "18500", "18:45" }, { "Trivandrum", "Rome", "19900",
"20:00"}, { "Trivandrum", "SanFrancisco", "35000", "12:00"}, { "Trivandrum",
"shanghai", "24430", "10:15" }, { "Trivandrum", "Singapore", "9000", "21:10" }, {
"Trivandrum", "Sydney", "27800", "12:00"}, { "Trivandrum", "Toronto", "35000",
"17:00 " } };
final Object[][] row3 = { { "Trivandrum", "Bangalore", "9375", "16:30" }, {
"Trivandrum", "Chennai ", "9675", "19:00" }, { "Trivandrum", "Delhi", "4275",
"08:30" }, { "Trivandrum", "Goa", "3075", "09:50" }, { "Trivandrum", "Hyderabad",
"4575", "11:00" }, { "Trivandrum", "Kolkata", "11475", "05:30" }, { "Trivandrum",
"Lucknow", "9075", "05:30" }, { "Trivandrum", "Mumbai", "5175", "12:00" }, {
"Trivandrum", "Vishakapatnam", "11175", "19:00" } };
final Object[][] row4 = { { "Trivandrum", "Bali", "64455", "06:20" }, { "Trivandrum",
"Bangkok", "27000", "20:45" }, { "Trivandrum", "Cairo", "68925", "10:25" }, {
"Trivandrum", "CapeTown", "37500", "16:45" }, { "Trivandrum", "Chicago",
"105000", "06:30" }, { "Trivandrum", "Dubai", "36000", "08:15" }, { "Trivandrum",
"Frankfurt", "55500", "06:50" }, { "Trivandrum", "HongKong", "62535", "12:00" }, {
"Trivandrum", "Istanbul", "66000", "10:45" }, { "Trivandrum", "London", "67800",
"14:35" }, { "Trivandrum", "LosAngeles", "105000", "22:00" }, { "Trivandrum",
"Melbourne", "83400", "21:15" }, { "Trivandrum", "New York", "96000", "08:50" }, {
"Trivandrum", "Paris", "55500", "18:45" }, { "Trivandrum", "Rome", "59700", "20:00"
}, { "Trivandrum", "SanFrancisco", "105000", "12:00" }, { "Trivandrum", "shanghai",
"73290", "10:15" }, { "Trivandrum", "Singapore", "27000", "21:10"}, { "Trivandrum",
"Sydney", "83400", "12:00"}, { "Trivandrum", "Toronto", "105000", "17:00" } };

Page 17
AIRLINE

JTable TDomesticFlight = new JTable(row1, col1);


JTable TInternationalFlight = new JTable(row2, col2);
JTable TDomesticFlight1 = new JTable(row3, col3);
JTable TInternationalFlight1 = new JTable(row4, col2);

JScrollPane JSP1 = new JScrollPane(TDomesticFlight,


ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
JScrollPane JSP2 = new JScrollPane(TInternationalFlight,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
JScrollPane JSP3 = new JScrollPane(TDomesticFlight1,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
JScrollPane JSP4 = new JScrollPane(TInternationalFlight1,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);

Icon img1 = new ImageIcon("img/economic.jpg");


Icon img2 = new ImageIcon("img/business.jpg");
Icon img3 = new ImageIcon("img/economic1.jpg");
Icon img4 = new ImageIcon("img/business1.jpg");

JLabel LEconomic = new JLabel("Economic", img1, SwingConstants.LEFT);


JLabel LBusiness = new JLabel("Business", img2, SwingConstants.LEFT);
JLabel LEconomic1 = new JLabel("Economic", img3, SwingConstants.LEFT);
JLabel LBusiness1 = new JLabel("Business", img4, SwingConstants.LEFT);

public LoginPage()
{
WindowUtilities.setNativeLookAndFeel();
setPreferredSize(new Dimension(796,572));

PFlightTypes.setBackground(Color.white);
PLogin.setBackground(Color.white);
Page 18
AIRLINE

PFlightDetails.setBackground(Color.white);

JSP1.setBounds(0, 340, 790, 200);


JSP2.setBounds(0, 340, 790, 200);
JSP3.setBounds(0, 340, 790, 200);
JSP4.setBounds(0, 340, 790, 200);

PFlightTypes.setBounds(0,0,500, 340);
PLogin.setBounds(500,0,350, 340);
PFlightDetails.setBounds(0,340,790,200);

LUserName = new JLabel(" User Name ");


LPassword = new JLabel(" Password ");
TFUserName = new JTextField(10);
TPPassword = new JPasswordField(10);
BLogin = new JButton("Sign In");

LUserName.setBounds(40, 100, 100, 21);


LPassword.setBounds(40, 140, 100, 21);
TFUserName.setBounds(160, 100, 100, 21);
TPPassword.setBounds(160, 140, 100, 21);
BLogin.setBounds(160, 200, 100,25);

LDomesticFlight1.setBounds(60, 60, 138, 20);


LInternationalFlight1.setBounds(60, 100, 153, 20);

PLogin.add(LUserName);
PLogin.add(TFUserName);
PLogin.add(LPassword);
PLogin.add(TPPassword);
PLogin.add(BLogin);
Page 19
AIRLINE

PFlightDetails.add(JSP1);
PFlightDetails.add(JSP2);
PFlightDetails.add(JSP3);
PFlightDetails.add(JSP4);

JSP1.setVisible(true);
JSP2.setVisible(false);
JSP3.setVisible(false);
JSP4.setVisible(false);

LBusiness.setBounds(265, 170, 300, 125);


LEconomic.setBounds(0, 170, 250, 125);
LBusiness1.setBounds(280, 200, 135, 60);
LEconomic1.setBounds(50, 200, 147, 60);

PFlightTypes.add(LEconomic);
PFlightTypes.add(LBusiness);
PFlightTypes.add(LEconomic1);
PFlightTypes.add(LBusiness1);

LBusiness.setVisible(false);
LEconomic1.setVisible(false);
LBusiness1.setVisible(true);
LEconomic.setVisible(true);

LDomesticFlight.setBounds(60, 60, 100, 25);


LInternationalFlight.setBounds(60, 100, 120, 25);

c.add(PFlightTypes);
c.add(PLogin);
Page 20
AIRLINE

c.add(PFlightDetails);

PFlightTypes.add(LDomesticFlight);
PFlightTypes.add(LInternationalFlight);

pack();
setVisible(true);

addWindowListener(new ExitListener());

LDomesticFlight.addMouseListener(new mouse1(this, true));


LInternationalFlight.addMouseListener(new mouse1(this, false));

LDomesticFlight1.addMouseListener(new mouse3(this, true));


LInternationalFlight1.addMouseListener(new mouse3(this, false));

LBusiness1.addMouseListener(new mouse2(this, true));


LEconomic1.addMouseListener(new mouse2(this, false));

BLogin.addActionListener(new button1(this));
}

public static void main(String args[])


{
new LoginPage();
}
}

class button1 implements ActionListener


{
LoginPage type;
Page 21
AIRLINE

char[] cCheck, cPassword={'a','d','m','i','n','\0'};


JFrame f;
String sCheck,sCheck1="admin";

public button1(LoginPage type)


{
this.type = type;
}
public void actionPerformed(ActionEvent e)
{
cCheck=type.TPPassword.getPassword();
sCheck = type.TFUserName.getText();
if ((sCheck1.equals(sCheck)) && check())
{
type.PLogin.add(type.LDomesticFlight1);
type.PLogin.add(type.LInternationalFlight1);

type.PLogin.remove(type.LUserName);
type.PLogin.remove(type.TFUserName);
type.PLogin.remove(type.LPassword);
type.PLogin.remove(type.TPPassword);
type.PLogin.remove(type.BLogin);

type.c.repaint();
}
else
{
JOptionPane.showMessageDialog(null, "Invalid username or password. Try
again");
}
}
public boolean check()

Page 22
AIRLINE

{
if (cCheck.length >= 6 || cCheck.length < 4)
return false;
for(int i=0;i<=4;i++)
{
if(cCheck[i]!=cPassword[i])
return false;
}
return true;
}
}

class mouse1 extends MouseAdapter


{
LoginPage type;
boolean bCheck;

public mouse1(LoginPage type, boolean bCheck)


{
this.type = type;
this.bCheck = bCheck;
}
public void mouseEntered(MouseEvent e)
{

type.LDomesticFlight.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURS
OR));

type.LInternationalFlight.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CU
RSOR));
}
public void mouseClicked(MouseEvent e)
{

Page 23
AIRLINE

if(bCheck)
type.bCheck = true;
else
type.bCheck = false;
type.LEconomic.setVisible(true);
type.LBusiness1.setVisible(true);
type.LEconomic1.setVisible(false);
type.LBusiness.setVisible(false);

type.JSP1.setVisible(false);
type.JSP2.setVisible(false);
type.JSP3.setVisible(false);
type.JSP4.setVisible(false);
if(bCheck)
type.JSP1.setVisible(true);
else
type.JSP2.setVisible(true);
}
}

class mouse3 extends MouseAdapter


{
LoginPage type;
boolean bCheck;

public mouse3(LoginPage type, boolean bCheck)


{
this.type = type;
this.bCheck = bCheck;
}
Page 24
AIRLINE

public void mouseEntered(MouseEvent e)


{

type.LDomesticFlight1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURS
OR));

type.LInternationalFlight1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CU
RSOR));
}
public void mouseClicked(MouseEvent e)
{
if (bCheck)
new DomesticFlight(type);
else
new InternationalFlight(type);
}
}

class mouse2 extends MouseAdapter


{
LoginPage type;
boolean bCheck;

public mouse2(LoginPage type, boolean bCheck)


{
this.type = type;
this.bCheck = bCheck;
}
public void mouseEntered(MouseEvent e)
{
type.LEconomic1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
type.LBusiness1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

Page 25
AIRLINE

}
public void mouseClicked(MouseEvent e)
{
if(type.bCheck)
{
if (bCheck)
{
type.LBusiness1.setVisible(false);
type.LBusiness.setVisible(true);
type.LEconomic.setVisible(false);
type.LEconomic1.setVisible(true);
type.JSP1.setVisible(false);
type.JSP2.setVisible(false);
type.JSP3.setVisible(true);
type.JSP4.setVisible(false);
}
else
{
type.LEconomic1.setVisible(false);
type.LBusiness.setVisible(false);
type.LBusiness1.setVisible(true);
type.LEconomic.setVisible(true);
type.JSP1.setVisible(true);
type.JSP2.setVisible(false);
type.JSP3.setVisible(true);
type.JSP4.setVisible(false);
}
}
else
{
if (bCheck)
{
Page 26
AIRLINE

type.LBusiness1.setVisible(false);
type.LBusiness.setVisible(true);
type.LEconomic.setVisible(false);
type.LEconomic1.setVisible(true);
type.JSP1.setVisible(false);
type.JSP2.setVisible(false);
type.JSP3.setVisible(false);
type.JSP4.setVisible(true);
}
else
{
type.LEconomic1.setVisible(false);
type.LBusiness.setVisible(false);
type.LBusiness1.setVisible(true);
type.LEconomic.setVisible(true);
type.JSP1.setVisible(false);
type.JSP2.setVisible(true);
type.JSP3.setVisible(false);
type.JSP4.setVisible(false);
}
}
}
}

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
Page 27
AIRLINE

public class InternationalFlight extends JFrame


{
JComboBox CBFrom, CBTo, CBClass, CBAdult, CBChildren, CBInfant;
JLabel LFrom, LTo, LBookingDate, LClass, LAdult, LChildren, LInfant,
LBookingDetails, LPassengerDetails, LDate, LImg1, LImg2, LNotes;
JTextField TFBookingDate;
Icon img1, img2;
JButton BFindFlight;
JPanel PPanel1, PPanel2;

LoginPage type1;

public InternationalFlight(LoginPage type1)


{
Container c =getContentPane();
c.setLayout(new BorderLayout());
String[] sItem1={"Trivandrum"};
String[]
sItem2={"Bali","Bangkok","Cairo","CapeTown","Chicago","Dubai","Frankfurt","Hon
gKong","Istanbul","London","LosAngeles","Melbourne","New
York","Paris","Rome","SanFrancisco","shanghai","Singapore","Sydney","Toronto"};
String[] sItem3={"Economic","Business"};

this.type1 = type1;
PPanel1 = new JPanel(null);
PPanel1.setPreferredSize(new Dimension(500,200));

LBookingDetails = new JLabel("<html><b><font color=\"#C71585\">Booking


Details</font></b></html>");
LFrom = new JLabel("From :");
LTo = new JLabel("To :");
LBookingDate = new JLabel("Booking Date:");

Page 28
AIRLINE

LClass = new JLabel("Class :");

CBFrom = new JComboBox(sItem1);


CBTo = new JComboBox(sItem2);
CBClass = new JComboBox(sItem3);

TFBookingDate = new JTextField(10);


LDate = new JLabel("(DD/MM/YYYY)");
LDate.setForeground(Color.red);

img1=new ImageIcon("map1.jpg");
LImg1 = new JLabel(img1);

BFindFlight = new JButton("Find Flight");

LBookingDetails.setBounds(20,3,100,20);

LFrom.setBounds(20,40,100,20);
CBFrom.setBounds(100,40,100,20);

LTo.setBounds(20,100,100,20);
CBTo.setBounds(100,100,100,20);

LBookingDate.setBounds(14,160,100,20);
TFBookingDate.setBounds(100,160,100,20);
LDate.setBounds(210,160,100,20);

LClass.setBounds(20,220,100,20);
CBClass.setBounds(100,220,100,20);

BFindFlight.setBounds(50,270,100,25);

Page 29
AIRLINE

LImg1.setBounds(0,290,495,260);

PPanel1.add(LBookingDetails);
PPanel1.add(LFrom);
PPanel1.add(CBFrom);
PPanel1.add(LTo);
PPanel1.add(CBTo);
PPanel1.add(LBookingDate);
PPanel1.add(TFBookingDate);
PPanel1.add(LDate);
PPanel1.add(LClass);
PPanel1.add(CBClass);
PPanel1.add(BFindFlight);
PPanel1.add(LImg1);
PPanel1.setBackground(Color.white);

c.add(PPanel1,BorderLayout.WEST);

PPanel2 = new JPanel(null);


PPanel2.setPreferredSize(new Dimension(320,160));

LPassengerDetails=new JLabel("<html><b><font
color=\"#C71585\">PassengerDetails</font></b></html>");

LAdult = new JLabel("Adults(12+)");

LChildren = new JLabel("Children(2-11)");


LInfant = new JLabel("Infants(under 2)");

String[] item4={"1","2","3","4","5","6"};
CBAdult = new JComboBox(item4);

Page 30
AIRLINE

String[] item5={"0","1","2","3","4"};
CBChildren = new JComboBox(item5);

String[] item6={"0","1","2","3"};
CBInfant = new JComboBox(item6);

img2 = new ImageIcon("note_bg.gif");


LImg2 = new JLabel(img2);
LNotes = new JLabel("<html><body><p>NOTE: Bookings with International Credit
Cards <p> have temporarily been suspended.This Service<p> will resume shortly and
we will have a notice<p> posted on our website.We regret any <p>inconvenience
caused to our passengers.</body></html>");

LPassengerDetails.setBounds(40,3,100,20);

LAdult.setBounds(40,40,100,20);
CBAdult.setBounds(140,40,100,20);

LChildren.setBounds(40,105,100,20);
CBChildren.setBounds(140,105,100,20);

LInfant.setBounds(40,170,100,20);
CBInfant.setBounds(140,170,100,20);

LImg2.setBounds(16,220,320,200);
LNotes.setBounds(55,240,380,180);

PPanel2.add(LPassengerDetails);
PPanel2.add(LAdult);
PPanel2.add(LChildren);
PPanel2.add(LInfant);
PPanel2.add(CBAdult);
PPanel2.add(CBChildren);
Page 31
AIRLINE

PPanel2.add(CBInfant);

PPanel2.add(LNotes);
PPanel2.add(LImg2);

PPanel2.setBackground(Color.white);

c.add(PPanel2,BorderLayout.EAST);

setSize(795,580);
setVisible(true);

BFindFlight.addActionListener(new button2(this, type1));


}
public static void main(String args[])
{
LoginPage type1=null;
new InternationalFlight(type1);
}
}

class button2 implements ActionListener


{
InternationalFlight type;
LoginPage type1;
button2(InternationalFlight type, LoginPage type1)
{
this.type = type;
this.type1 = type1;
}
public void actionPerformed(ActionEvent e)
{
Page 32
AIRLINE

String sFrom = (String)type.CBFrom.getSelectedItem();


String sTo = (String)type.CBTo.getSelectedItem();
String sClass = (String)type.CBClass.getSelectedItem();
String sBookingDate = type.TFBookingDate.getText();
Integer iPrice=0;
String sTime="";

Integer iAdult = Integer.parseInt((String)type.CBAdult.getSelectedItem());


Integer iChildren = Integer.parseInt((String)type.CBChildren.getSelectedItem());
Integer iInfant = Integer.parseInt((String)type.CBInfant.getSelectedItem());

int i = 0;

if(sClass.equals("Economic"))
{
try{
while(i<20)
{
if(type1.row2[i][1].equals(sTo))
{
iPrice = Integer.parseInt((String)type1.row2[i][2]);
sTime = (String)type1.row2[i][3];
break;
}
i++;
}
}catch(Exception e1)
{
JOptionPane.showMessageDialog(null, "You have no rights to
access");
System.exit(0);

Page 33
AIRLINE

}
}
else
{
try
{
while(i<20)
{
if(type1.row2[i][1].equals(sTo))
{
iPrice = Integer.parseInt((String)type1.row4[i][2]);
sTime = (String)type1.row4[i][3];
break;
}
i++;
}
}catch(Exception e1)
{
JOptionPane.showMessageDialog(null, "You have no rights to
access it");
System.exit(0);
}
}
type.setTitle(iPrice + " " + sTime);

iPrice = (iPrice*iAdult)+(iPrice*(iChildren/2));

int iCount=0;
int iSeatCount=0;

String[] sTempFrom=new String[1250];


String[] sTempTo=new String[1250];

Page 34
AIRLINE

String[] sTempClass=new String[1250];


String[] sTempBookingDate=new String[1250];
String[] sTempTime=new String[1250];
Integer[] iTempAdult=new Integer[1250];
Integer[] iTempChildren=new Integer[1250];
Integer[] iTempInfant=new Integer[1250];
Integer[] iTempPrice=new Integer[1250];

try
{
//read from data
Save1 save1;
ObjectInputStream OIS1 = new ObjectInputStream(new
FileInputStream("save1"));
do
{
save1 = (Save1)OIS1.readObject();
sTempFrom[iCount] = save1.sFrom;
sTempTo[iCount] = save1.sTo;
sTempClass[iCount] = save1.sClass;
sTempBookingDate[iCount] = save1.sBookingDate;
sTempTime[iCount] = save1.sTime;
iTempAdult[iCount] = save1.iAdult;
iTempChildren[iCount] = save1.iChildren;
iTempInfant[iCount] = save1.iInfant;
iTempPrice[iCount] = save1.iPrice;

iCount++;
if(save1.sBookingDate.equals(sBookingDate))
if(save1.sTo.equals(sTo))
iSeatCount=iSeatCount + save1.iAdult +
save1.iChildren + save1.iInfant;

Page 35
AIRLINE

}while(save1!=null);
OIS1.close();

}
catch(Exception e1)
{
}

iSeatCount = iSeatCount + iAdult + iChildren + iInfant;

if(iSeatCount > 60)


{
JOptionPane.showMessageDialog(null,"Seats are full. Sorry!");
}
else
{
int iChoice = JOptionPane.showConfirmDialog(null,"Seats available. Do you
want to Book now?");
if(iChoice == JOptionPane.YES_OPTION)
{
new PrintTicket1(sFrom, sTo, sClass, iAdult, iChildren, iInfant,
sBookingDate, iPrice, sTime);
try
{
//write into data
Save1 save2=new Save1(sFrom, sTo, sClass, iAdult, iChildren,
iInfant, sBookingDate, iPrice, sTime);
ObjectOutputStream OOS1 = new ObjectOutputStream(new
FileOutputStream("save1"));
for(i=0;i<iCount;i++)
{
Save1 temp1=new Save1(sTempFrom[i], sTempTo[i],
sTempClass[i], iTempAdult[i], iTempChildren[i], iTempInfant[i],
sTempBookingDate[i], iTempPrice[i], sTempTime[i]);
Page 36
AIRLINE

OOS1.writeObject(temp1);
System.out.println(temp1);
}
OOS1.writeObject(save2);
OOS1.close();
}catch(Exception e1)
{
System.out.println(e1);
}
}
else
{
}
}
}
}

class Save1 implements Serializable


{
String sFrom, sTo, sClass, sBookingDate, sTime;
Integer iPrice, iAdult, iChildren, iInfant;
// int iCount;
public Save1(String sFrom, String sTo, String sClass, Integer iAdult, Integer iChildren,
Integer iInfant, String sBookingDate, Integer iPrice, String sTime)
{
this.sFrom=sFrom;
this.sTo=sTo;
this.sClass=sClass;
this.iAdult=iAdult;
this.iChildren=iChildren;
this.iInfant=iInfant;

Page 37
AIRLINE

this.sBookingDate=sBookingDate;
this.iPrice=iPrice;
this.sTime=sTime;
// this.iCount = iCount;
}
public String toString()
{
return sFrom+" "+sTo+" "+sClass+" "+iAdult+" "+iChildren+" "+iInfant+"
"+sBookingDate+" "+iPrice+" "+sTime;
}
}

Page 38
AIRLINE

7.2 Input screen and output screen

Log In form

Page 39
AIRLINE

MAIN FORM

Page 40
AIRLINE

Page 41
AIRLINE

Page 42
AIRLINE

Page 43
AIRLINE

Page 44
AIRLINE

8. TESTING AND VALIDATION CHECKS


System testing is actually s series of different whose primary purpose is to
fully exercise the computer based system. Software testing is critical element of
software quality assurance and represent the ultimate review of the specification,
design and coding. System testing makes a logical assumption that all the part of the
system is correct; the goal will be successfully achieved. Testing is the final
verification and validation activity within the organization itself. During testing the
major activities are concerned on the examination and modification of the source
code.

Testing is a process of executing a program with the intended of finding an


error. A good test is one that uncovers an as yet undiscovered error. Testing objectives
are;

Unit testing:

Unit testing enables a programmers to detect error in coding. A unit test


focuses verification of the smallest unit of software design. This testing was carried
out during the coding itself. In this testing step, each module going to be work
satisfactory as the expected output from the module.

Using integrated test plan prepared in the design phase


of the system development as a guide, the integration test was carried out.
All theerrors found in the system were corrected for the next testing step.

Integrating testing:

Through each program work individually, they should work after linking
together. This is referred to as interfacing. Integration testing is the systematic
technique for constructing the program structure while at the same conducting test to
uncover errors associated with the interface.

System testing:

After performing the integration testing, the next step is output testing of the
proposed system. No system could be useful if it doesn’t produce the required output
in a specified format. The output generated are displayed by the user.

Page 45
AIRLINE

Validation testing:

The user has to work with the system and check whether the project meets his
needs. In the validation checking the user works with the beta version of the software.
Project aspect: user enters the appropriate data and results was checked and validated.

User acceptance testing:

User acceptance of a system is a key factor of the success of any system. The
system under consideration was tested for user acceptance by running a prototype of
the software Project aspect:An Alfa version is demonstrated to the users. Their
suggestion are recorded.

Test Case Design Methods

The primary objective of test case design methods is to derive a set of test that
has of highest likelihood of uncovering the defects. To accomplish this objective, two
categoriesof test case design techniques are used Black box testing and white box
testing.
White box testing

a) White box testing:


It is a set case design method that uses the control structure of
the procedural design to derive test cases. Using white box testing methods, we can de
rivetest cases that
 Guarantee that all independent paths within a module have been exercise date
least once
 Exercise all logical decisions on their true and false sides.
 Execute all loops at their boundaries and within their operational bounds.
 Exercise internal data structures to ensure their validity

b) Black box testing:


Black box testing methods focus on the functional requirements in the software.
That is, black box testing enables us to derive sets of input conditions that will fully
exercise
Page 46
AIRLINE

All functional requirements of the program Black box testing attempts to find
errors in the following categories:

 Incorrect or missing function.


 Interface errors.
 Errors in data structure or external job access.
 Performance errors.
 Initialization and termination errors.

Page 47
AIRLINE

9. SYSTEM SECURITY MEASURES

Security can have varying levels of difficulty for implementation. One


factor indetermining the difficulty is the number and distribution of the systems.
When onlyindividual systems need to be protected, such as one computer with all files
residinglocally and with no need to connect to any outside resources, security is not as
complex aswith distributed systems. With distributed systems architecture, there are
different nodesand resources. One major issue with distributed systems is application
security. There is the question of how security is handled in distributed applications,
and how the clienthandles applications coming from an unknown source.
 Identifying the business importance of the data and its associated processing
system.
 Assigning a security priority to the data, based on the business case evaluation.
 Identifying the classes of users requiring access to the Teradata RDBMS and
the data under its control.
Identifying the system resources requiring protection to ensure continued
availability toall valid Teradata users.The security requirements should be based on
the business value of the data processed onthe system. A system that stores and
processes highly sensitive data probably has agreater need for security than one that
does not.
There are three levels of data security, including minimal, moderate, and high.
Each levelwill have its advantages and disadvantages:
 Minimal security
Anyone who has successfully logged on to the system has unrestrictedaccess to all
data and Teradata RDBMS resources. No security-related auditing is done,and there is
no formal security policy. The only security-related access restriction is that auser
must first gain access to a client system that is capable of communicating with
theTeradata RDBMS. All these make sharing information is extremely simple, and
thesystem performance is enhanced by the lack of security enforcement activities. On
theother hand, obviously, the data is subject to destroy or corrupt due to the luck of
thesystem security control.

Page 48
AIRLINE

 Moderate security
In this class, users are grouped according to their needs and trustworthiness. Under
moderate security, unlimited access is reserved for a
small, privileged subgroup. Only occasional auditing of security-
related events is performed, and no formal security policy exists for the users. In this
class, security-related events that have a little or no effect on system performance, and
users are subject to little or no demand for additional effort to perform their work, but
the disadvantage is that it's possible that serious violation attempt can go undetected
for extended periods.

 High security
At this level, a security administrator is identified and charged with establishing and
maintaining Teradata RDBMS security. Physical access to processors, disk storage
units, and system consoles is carefully controlled. Security-related events area
regularly. Random security audits of individual users are performed. In this class, data
and processing resources are afforded a high level of protection. If an unauthorized
access is attempted, the auditing policy is designed to both detect the attempt and
permit corrective measures to be implemented. The disadvantage is that shared data
requires additional effort on the part of owner, as they must define who is authorized
to access the owned information. Also, based on the frequency and scope of the audit,
system performance can be negatively affected by the demands of auditing security-
related events.

 Formulating Security Policy


Once the security needs of the system have been defined, a security policy can
be formulated. The security documents should cover:
 Extent of the need for security.
 Benefits to be derived form a secure system.
 A defined management policy when a user is discovered attempting to
violate security.
 Password protection.
 Granting access to data.
 Computer room staff.
 Contacting the security administrator
Page 49
AIRLINE

10. IMPLEMENTATION, EVALUATION AND MAINTENANCE

Implementation:

Once the system was tested, the implementation phase started. Crucial phase
in the system development life cycle is successful implementation of new system
design. Implementation simply means converting new system into operation.

Evaluation:

The project evaluation process includes performing a needs analysis and


architecture review. The implementation phase of the software design consists of
different tasks to be done sequentially for obtaining the desired result. Several distinct
implementation projects rather than one large implementation.

Maintenance:

Management is “the process of designing and maintaining an environment in


which individual, working together in group, accomplish efficiently selected aims”. In
the case of maintenance the key aim is to provide cost-effective support to a software
system during its entire lifespan. Management is concerned with quality and
productivity.

Page 50
AIRLINE

11.FUTURE SCOPE OF THE PROJECT

This application can be easily implemented under various situation. We can add
new features as when we require. Reusability is possible as and when require in this
application. There is flexibility in all the modules.

Extensibility:

This software is extendable in ways that its original developers may not
expect. The following principle enhances Extensibility like hide data structure, avoid
traversing multiple links or methods, avoid case statements on object type and
distinguish public and private operations.

Reusability:

Reusability is possible as and when require in this application. We can update


it next version. Reusable software reduces design, coding and testing cost by
amortizing effort over several designs. Reducing the amount of code also simplifies
understanding, which increases the likelihood that the code is correct. We follow up
both types of reusability: Sharing of newly written code within a project and reuse of
previously written code on new projects

Page 51
AIRLINE

12.SUGGESTION AND CONCLUSION


The application is designed in such a way that any further enhancements can
be done with ease. The system has the capability for easy integration with other
systems. New modules can be added to the existing system with less effort.
The system has six classes. Each of these classes has various procedures and
functions. In future a new function or procedure can be easily added in the system
through these classes. Or even a new class can be added. The system generates only a
limited number of reports. If more detailed reports are required the system can be
directed. Even though the system has well communication facility, it's not enough.
The mail service can be enhanced with features bcc, cc etc. the system has full
security but the accounting formation for the customer credit information. Thus by
adding this module the system transaction will be improved.

Page 52
AIRLINE

13.BIBLIOGRAPHY AND REFERENCES


14.
 Book reference:-
Mastering java Evangelos Petroutos
Microsoft Office Access 2003 Vergina Anderson
System analysis and design Elias mawad
(Galgotia publications Pltd)
java (Module II) NCPUL group
Analysis & design of Information system Rajaraman
(PHI publications)
 Web sites:-
www.compusoxide.com

www.scribd.com

www.ijornd.com

www.W3School.com

Page 53

S-ar putea să vă placă și