You are on page 1of 29


Visual Basic
Airline Reservation System

Submitted To : Submitted By :
Sana Saniya
Mr.Imran Sir
Class 12 th
Section A"
Every work. However big or small is a result of join effort
of a lot of people. This Project is also the same.
First of all I would like to thanks our principal
Mrs. Reena Francis for her efforts provide us a harmonious
environment our thanks go to respected faculties for
providing me useful literature and books at the time of crisis.
In the end I am also thankful to our Mr. Imran Sir

for there Guidance and kind co-operation. It would have been

impossible for me to complete this project report without her
help and valuable suggestion providing me useful literature &
books at the time of crisis


Sana Saniya
This is to certify that Mahesh Pratap studying in
Class 12th Section B in academic session 2014-
15 of the institution has completed project report
on Computer as requirement of practical exam
The work has been carried to our entire
satisfaction under our guidance and supervision.

Lecturer in charge Principal

Ms Asma Mam












System design is a solution, a how to approach to the creation of the

new system. This important phase is composed of the several steps. It provides
the understandings and procedural details necessary for implementing the
system recommended in feasibility study. Emphasis is on translating the
performance requirements into design specification. Design goes through
logical and physical stages of development. Logical designs reviews the present
physical system, prepares input and output specification, make edit security and
control specification, details the implementation plan and prepares a logical
design walkthrough. The physical design makes out the details of the physical
system, plans the system implementation devices a test and implementation plan
and specifies any new hardware and software.

Implementation, planning, system test preparation, system interfaces

specification and user documentation.

1. Data Base Design: - This activity deals with the design of the physical
database. A key is to determine how the access paths are to be implemented.
A physical path is derived from a logical path.

2. Programs Design: - In conjunction with the database design is a decision

on the programming language to be used and the flowcharting and
debugging procedure prior to conversion.

3. Systems and Programs Test Preparation: - Each aspect of the system has a
separate test requirement. System testing is done after all programming and
testing are completed the test cases cover every aspect of the candidate
system actual operation, user interface and so on.

4. System Interface Specification: - This phase specifies for the user how
information should enter and leave the system.

Input Design: Inaccurate input data are the most common cause of error
in data processing. To identify and correct errors the following must be done.


Several development activities are carried out during structured

Those are following:-
1 Process of design
The design phase focuses on the
detail implementation of the system recommended in the feasibility
study. Emphasis is on translating the performance specifications
into design specifications. The design phase is a transition from a
user-oriented document to a document oriented to the programmers
or data base personnel.
2 Requirements of form design

i. Identification and wording.

ii. Maximum readability and use.
iii. Physical factor.
iv. Order of data items.
v. Ease of data entry.
vi. Size and arrangement forms.
vii.Use of instructions.
Viii.Efficiency considerations.

1. Output Design: -
Computer outputs are most important and
direct source of information to the user. Efficient, intelligible
output design should improve the systems relationship with the
user and help in decision making. A major form of output in a hard
copy from the printer. Printout should be designed around the
output requirement of the user.

2. Form design:-
The data, the forms carry come
from people and the informational output the system goes to the
people. The physical carrier of data of information. It also can
constitute authority for action. Each from is a request for an action.
It provides information for making decision and improving
operations. Manipulate, describe and manage data.

e. Testing:-
No system design is ever perfect. A system is tested for
online response, volume of transaction, stress, recovery from failure and
usability. System testing requires a test plan that consists of several key
activities and steps for programs, string, system and user acceptance
testing. Testing is the process to check the system to find out any error
that many cause the system some trouble or hamper the integrity of the


Software testing is the process of executing a program with

the intent of finding an error. A good test has a high probability of finding
a yet undiscovered error. The test data was prepared keeping in mind the
user requirement and expectation.


1. Test data was keened in through the data entry screen in the
2. Input/output was carried to ensure proper functioning of the
system. It was confirmed that all the required validation and
check are performed by giving invalid data input. 3. Testing
for suitable error message/messages was done in case of invalid data
4. Testing for proper report layout.


1 UNIT TESTING :- This type of testing involve individual

testing of programs with respect to the desired expected
output proper care is taken when entering the data checks
were made to see that the data entered is correct and not of
the specified bond(s), proper error message are flashed when
an error occurs.

2 SYSTEM TESTING: - In this phase the system as a whole

is tested. This testing phase will check the integrity of the
data while it was transferred from one process to another.
The interaction between the modules was checked to see
whether a module procedure the required output, which
would be needed as input of another one.

e. Implementation: -
This is crucial phase of system
development .It involves introduction of new system into operation.
This involves creating computer awareness on to job, training,
installation of hardware, terminal if does not exist, client
communication equipment before the system is up and made
operational. User manuals are prepared and user is trained in its use.

implementation system was working manually. Few people were
developed to run the computerized system. Data was fed at regular
interval and monitories on basis of report and output. All the possible
errors were recorded rectify and rested. The system after proper
security and satisfaction was stepped in to next phase employees were
given adequate training, about how to handle the system.

f. Post-implementation and Maintenance:-

After the installation phase
is completed and the user staff is adjusted to the changes created by
the candidate system, the evaluation and maintenance begin. Like any
system, there is an aging process that requires periodic maintenance of
Hardware & Software. If the new information is inconsistent with the
designed specification then changes have to be incorporated in the
Software. Hardware also requires periodic maintenance to keep in tune
with designed specification.



In order to understand the application development process,

it is helpful to understand some of the key concepts upon which Visual
Basic is build because Visual Basic is a windows development language,
so some familiarity with the Windows environment is necessary.

A complete description of the inner working of Windows would require an

entire book. A simplified working of the Windows involves three key concepts:-
1 Windows
2 Events
3 Messages

Windows can be thought of simply as a rectangular region

with its own boundaries. There are several different types of Windows:
1 An explorer window in Windows 98
2 A document window within our word processing program OR
3 A dialog box that pops up of remind us of an appointment Icons,
Text boxes, Option buttons and menu bar all Windows.

The Microsoft Windows O .S manages all of these many

windows by assigning each one a unique ID no. the system continually
monitors each of these windows for sign of activity or events. Events can
occur through user action such as a mouse click or a key press, through
programmatic control, or events as a result of another window action.


The VISUAL part refers to the methods used to

create the Graphical User Interface (GUI). Rather than writing numerous
lines of code we simply drag and drop pre-build objects into place on the
The BASIC part refers to the BASIC (Beginners
All Purpose Symbolic Instruction Code) language, a language used by
more programmers. VB has evolved from original BASIC language and
now contains several more than hundred statements, functions and
keywords, many of which relate directly to Windows ( GUI). Beginners
can create useful application by learning just a few of the keywords.

Whether our goal is to create a small utility for our

workgroup or a large enterprise-wide system, ourselves or even
distributed applications spanning the globe via the Internet, VB has the
tool we need.

1 Data access features allow us to create database & front-end

application for most popular database formats.

2 ActiveX technology allows us to use the functionality provided by

other applications, such as Microsoft Word word processor,
Microsoft Excel spreadsheet and other Windows application.

3 Internet capabilities make it easy to provide access to documents

and applications across the Internet from within our document.

4 Our finished application is true .exe file that uses a runtime

Dynamic Link Library (DLL) that we can freely distribute.


In traditional or procedural applications the
application itself controls which portion of the code to execute and in
which sequence. In an event driven application, the code does not
follow a predetermined path it executes different code sections in
response to events. Events can be triggered by user action, by
messages from the system or other applications. The sequence of these
events determines the sequence in which the code executes each time
program runs.
Our code can also trigger events during execution, or
it is important to understand to the event driven model.

The traditional application development process can
be broken into three steps.
Which are as follows:-

1 Writing
2 Compiling
3 Testing the code

unlike traditional language, VB uses an interactive approach.

With most languages, if we make a mistake the error is caught
by the compiler when we start compiling our application. We
must then find and fix the errors and then start the compile
cycle again, repeating the process for each error. VB interprets
our code as we enter it, catching and highlighting the errors. VB
also compiles the code as we enter. When we are ready to
execute the code there is no delay in compiling.


VB is referred to as
The working environment in the IDE
(Integrated Development Environment) because it integrates
many functions such as design, coding, editing, compiling, and
debugging the error and immediate windows for different purposes
within a single environment.


The first step to creating an application using VB is to

create the interface i.e. the visual part of the application that the user
interacts with forms and controls are the basic building block used to
create the interface.

1 FORMS :-
Forms are objects that process properties that define
their appearance, methods that define their behavior, and events
which define their interaction with the user. By setting the
properties of the form and writing VB code to respond to its
events we can customize the objects to meet the requirements of
our application.

Controls are objects that are contained within form
objects. Each type of control has its own properties, methods
and events that make it suitable for a particular purpose. Some
of these controls we use in our application are best suited for
entering or displaying text. Other controls let us access other
applications and process data as if the remote application was
part of our code.


Single project can contain up to 32,000 identifiers

which include forms, controls, modules, variables, constraints,
procedures, functions and objects. Variables name no longer than 255
characters and the names of forms, controls, modules and classes
cannot be longer than 40 characters. The amount of code that can be
loaded into a form is limited to 65,534 lines. A single line code can
consist of 1023 bytes.

In order to install the software your system must the following

1 Hardware Requirement:-

Processor : Celorn processor 2.4 or Pentium III

or higher

RAM : 128 MB RAM

HD Capacity : 2 G B HD or more

Scanner : Should be of good quality

Printer : Inkjet B/W or color

2 Software Requirement: -

Operating System: Windows 98 or higher version

Packages : Visual Basic 6.0, Oracle

Out Put
Option Explicit

Private Sub cmd Cancel_Click()

Unload Me
End Sub

Private Sub cmd OK_Click()

If txtUserName = "Indira Priyadarshini School" And txtPassword = "123456"
MsgBox "Invalid Password, try again!", , "Login"
End If
End Sub

Private Sub Form_Load()

End Sub

Private Sub Command1_Click()

Unload Me
End Sub

Private Sub Command2_Click()

Unload Me
End Sub

Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

Private Sub Picture1_Click(Index As Integer)

End Sub

Private Sub cmdadd_Click()

cmdsave.Enabled = True
End Sub

Private Sub cmddelete_Click()

Dim intresponse As Integer
intresponse = MsgBox("are you sure ,you want to delete the record ", vbYesNo,
"delete the record")
If intresponse = vbYes Then
With empl_data.Recordset
If .EOF Then
If .BOF Then
MsgBox "The recordset is empty.", vbInformation, "no
End If
End If
End With
End If
End Sub

Private Sub cmdsave_Click()

cmdsave.Enabled = False
End Sub

Private Sub Exit_Click()

Unload Me
End Sub

Private Sub Form_Load()

End Sub

Private Sub Calculate_Click()

Dim rc As Currency
Dim dur As Integer
Dim amount As Currency
rc = Val(Text6.Text)
dur = Val(Text7.Text)
amount = rc * dur
Text8.Text = amount
End Sub

Private Sub cmdadd_Click()

cmdsave.Enabled = True
End Sub

Private Sub cmddelete_Click()

Dim intresponse As Integer
intresponse = MsgBox("Are you sure ,you want to delete the record", vbYesNo,
"delete the record")
If intresponse = vbYes Then
With cust.Recordset
If .EOF Then
If .BOF Then
MsgBox "The recordset is empty.", vbInformation, "norecords"
End If
End If
End With
End If
End Sub

Private Sub cmdsave_Click()

cmdsave.Enabled = False
End Sub

Private Sub Combo1_Click()

Text4.Text = Combo1.Text
If Combo1.ListIndex = 0 Then
Text6.Text = 350
ElseIf Combo1.ListIndex = 1 Then
Text6.Text = 550
ElseIf Combo1.ListIndex = 2 Then
Text6.Text = 750
ElseIf Combo1.ListIndex = 3 Then
Text6.Text = 1050
End If
End Sub

Private Sub Combo2_click()

Text5.Text = Combo2.Text
End Sub

Private Sub Exit_Click()

Unload Me
End Sub

Option Explicit
Dim mcursubtotal As Currency
Dim mcurtotal As Currency
Dim mcurgranttotal As Currency
Dim mintcustomercount As Integer
Const mcurtaxrate As Currency = 0.1

Private Sub Command1_Click()

Dim curprice As Currency
Dim intquantity As Integer
Dim curtax As Currency
Dim curitemamount As Currency
Const cappuccino As Currency = 25
Const expresso As Currency = 24
Const latte As Currency = 36
Const iced As Currency = 45
Const cocacola As Currency = 15
Const pepsi As Currency = 15
Const thumsup As Currency = 15
Const mirinda As Currency = 13
Const sprite As Currency = 14
If Option1.Value = True Then
curprice = cappuccino
ElseIf Option2.Value = True Then
curprice = expresso
ElseIf Option3.Value = True Then
curprice = latte
ElseIf Option4.Value = True Or Option5.Value = True Then
curprice = iced
ElseIf Option6.Value = True Then
curprice = cocacola
ElseIf Option7.Value = True Then
curprice = pepsi
ElseIf Option8.Value = True Then
curprice = thumsup
ElseIf Option9.Value = True Then
curprice = mirinda
ElseIf Option10.Value = True Then
curprice = sprite
MsgBox "Please Make Drink Selection.", vbOKOnly, "oops"
End If
If IsNumeric(Text1.Text) Then
intquantity = Val(Text1.Text)
curitemamount = intquantity * curprice
mcursubtotal = mcursubtotal + curitemamount
If Check1.Value = Checked Then
curtax = curfindtax(mcursubtotal)
End If
mcurtotal = mcursubtotal + curtax
Label9.Caption = curitemamount
Label10.Caption = Text2.Text
Label11.Caption = mcursubtotal
Label12.Caption = curtax
Label13.Caption = mcurtotal
MsgBox "Quantity Must contain a Number", vbExclamation, "Missing Data"
End If
End Sub

Private Sub Command2_Click()

If mcursubtotal <> 0 Then
With Text1
.Text = ""
End With
Label9.Caption = ""
Check1.Value = False
Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False
Option5.Value = False
Option6.Value = False
Option7.Value = False
Option8.Value = False
Option9.Value = False
Option10.Value = False
MsgBox "NO New Order to Clear", vbExclamation, "oops"
End If
End Sub

Private Function curfindtax(curamount As Currency) As Currency

curfindtax = curamount * mcurtaxrate
End Function

Private Sub Exit_Click()

Unload Me
End Sub

Private Sub Form_Load()

End Sub

Private Sub Print_Click()

Printer.Font.Name = "monotype corsiva"
Printer.Font.Size = 20
Printer.Print Tab(30); Label11.Caption
Printer.Print Tab(30); Name; "txt2.txt"
Printer.Print Tab(30); "Subtotal"; Label7.Caption
Printer.Print Tab(30); "Tax:"; Label8.Caption
Printer.Print Tab(30); "Total Due"; Label9.Caption
End Sub

Now ,as the user /reader has under gone through the listing AND other
accessories details of the project work ,so we feel that the user must have
become well acquainted with the aim AND feed back of this work. We
wish that the acquaintance of the user with this work revals a positive
response AND he/she finds this effort of ours in their good thoughts.
Of course, at the beginning ,project appeared very small,but when
we actually started the work , we encounterd its depth. This project work
coverd every aspect of the customer management. The experience of our
guide helped us a lot in this regard. This project gives us complete
Thanks a million for going through our work ,because your viewing
AND satisfaction is the reward for our work in developing this project to
its present shape.

Hope you rewind this.


Title Author
1.Mastering visual BPB Publication by
basic 6.0- E.Petroutsos.

2.Visual basic 6 in BPB Publication by

record time steve brown.

3. Visual basic 6 devel- BPB Publication by

opers handbook Petroutsos .