0% found this document useful (0 votes)
13 views

Computer Science Project (1)

Uploaded by

rashiksharma52
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Computer Science Project (1)

Uploaded by

rashiksharma52
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 36

Computer Science

Flight Reservation system

Name: A. Muzaina Fathima


Roll no.:
Class: XII
CERTIFICATE
Name: A. Muzaina Fathima
Roll No.:
Class: XII

School: Geetanjali Olympiad School

This is certified to be the bonafide work of the


student in the Computer Science Laboratory
during the academic year 2021-22.

Teacher in charge Signature:

Principal’s Examiner’s
Signature: Signature:

School Seal: Date:

2
DECLARATION

We hereby declare that all the coding results of the

project report entitled “FLIGHT RESERVATION

SYSTEM” submitted to the department of

computer science, Geetanjali Olympiad School &

College Bangalore, are our efforts.

Submitted by:

Muzaina Fathima
M.Somika
Krishnasree

3
ACKNOWLEDGEMENT

I would like to express my deepest appreciation to all


those who provided me with the possibility to
complete this project. I would like to thank my
Computer Science teacher Mr.KOUSHIK K S, whose
valuable guidance has helped me complete this
project. His / Her suggestions and instructions have
served as a major contributor towards the completion
of the project.

I take this opportunity to thank our head of the


institution, Ms.Durba Gupta, who was always
supportive and helpful in fulfilling all our academic
requirements.

Last but not the least; I would like to thank all my


classmates who have helped me to complete this
project.

4
TABLE OF CONTENTS

# Aim

# Introduction

 Schematic Representation of the Work Flow

# Requirements

# Imported files and used function in python

# Table created in MYSQL

# Coding

# Output

# Limitation and Enhancement

# Bibliography

5
6
AIM

Airline Reservation System’s main aim is to provide


the online ticket & seat reservation of National and
International Flights and also give us information
about flight departures. It is used to manage the details
of Airlines, Tickets, Flight, and Customer, Booking,
Counter and, Venders. It manages all information
about Airlines Ticket, Bookings, Vendors, Airlines
tickets.

The project is totally built at the administrative end


and thus only the administrator is guaranteed access.
The purpose of the project is to build an application
program to reduce the manual work for managing the
Airlines Ticket, Flight, Bookings, and Customer. It
tracks all the details about the customer, booking
counter, and vendors.

7
INTRODUCTION

Flight reservation systems include passenger,


airline, schedules, and ticket records. An airline’s direct
distribution works within their reservation system, as
well as pushing out information to GDS (Global
Distribution System).

The second type of direct distribution channel are


consumers who use the internet or mobile applications
to make their reservations. Check-in is an important
and the first procedure for an airport passenger, as
passengers are required by airline regulations to
check-in at certain moments before a flight departs.
The airline check-ins are one of the main functions for
the airline, it is also important to check and screen the
luggage that goes into the aircraft for the passenger as
well as the security of the airport.

8
Schematic representation of the
Work flow

Login/Sign Reservation
up
Create an
account
Boarding
Transaction
pass

Refund

PASSENGER Reservation
Feedback
management

Delete an
account

Additional Cuisine Receipt

Reservation:

Passenger details

Cabin class

Mode of flight

Transaction

Exit

9
REQUIREMENTS
HARDWARE:
1) Processor: Pentium(R) G2030 3.70GHz
2) RAM: 4 GB

3) System architecture: 64 bit operating system


4) Hard disk: 500 Gigabyte

SOFTWARE:
1) Operating system:

Windows 10
2) Front End:

IDE: IDLE Python (Version 3.7.4)

3) Back End:

MYSQL workbench 8.0

10
Files imported
1) Import MYSQL for database connectivity.

2) Import String module to generate flight and

ticket number.
3) Import random module to scramble the strings

and generate flight and ticket number.


4) Import DATETIME to access the current date

and time.

FUNCTIONS USED
1) Connect()- to create a connection between python

& MYSQL
2) Cursor () - to execute MYSQL queries in python.

3) Fetchall () - to fetch all the records.

4) Fetchone () - to fetch one record according to the

query.
5) Commit () -to execute current transaction.

11
TABLE CREATED IN MYSQL
The name of the database is ‘airline’. These are the tables
created.

1) LOGIN
This table keeps the
record of the
username and password entered by the passengers.

2) PASSENGERS
This table keeps the record
of the reservation details of
the passengers.

3) CABIN_CLASS
This table keeps a record of
the mode of class the
passenger chooses.

12
4) LOCATION
This table keeps a track of
the location the passenger
chooses.

5) PAYMENT
This table collects the details
of the payment details of the
passenger.

6) REFUND
This table records the
details required for
refund.
7) FEEDBACK
This table keeps a record of
the reviews and ratings
given by the passengers.

8) FOOD
This table
presents the
menu of food
items for the passengers.

13
THE MENU

This table is fetched in python and the user selects


their desired eatables. It later generates a receipt.

9) SAMPLE DATE
This table generates
the current date to
be used in python.
The current date is first inserted in the table using the
‘curdate ()’ function, then the date is fetched in python
using the appropriate code.

14
MODULES CREATED IN PYTHON

 mainpg

 login

 reservation

 cabin_class

 delete

 food

 transaction

 feedback

 string_generator

15
CODING

The coding done in PYTHON IDLE.

 MAIN LOGIN PAGE --


This is the startup of our application. This page takes the choice of
the user and redirects them to ‘login’ module, where user shall log in or
sign up as per their wish.

16
 THE LOGIN PAGE --
This page ensures the user logs or signs into the program. This
module redirects into the main login page from where the processing of
the code begins.

Logging into an account is necessary to start the program. Sign up


and login functions generate a unique three digits code named ‘batch
number’ using another module ‘string_generator’. This is used to create
a connection between every table in MYSQL.

If the username already exists, the program will ask the user to
input the username again and try another unique one.

17
If the account doesn’t exist already, the user is given a choice to
sign up or leave the page. Sometimes the account exists, but the wrong
entry of the password denies its existence. At such instances, this choice
is useful. The user can come out of the loop and re-enter their data.

18
 THE MAIN PROGRAM --
This is the main module of our application. The major decision-making
happens in this page. The required modules have been imported in this
module. It gives user the main choice. The choices are defined inside a
function,’main’. This function is called in login page.

19
# RESERVATION --
This module takes the passenger details required for booking through
the ‘booking function’. These details are then input in MYSQL using the
appropriate queries. The ‘airliner’ function takes the airliner details
from the user.

This function asks the user the airline service they want to choose and it
is called where it is required.

20
 CABIN_CLASS --
This module has two functions;

1. SEAT-

It takes the details of the mode of class the passenger wants to


travel in along with its costing. The details about the baggage the
passenger is permitted to carry has also been specified.

21
2. FLIGHT-
This function gives the user a choice between DOMESTIC and
INTERNATIONAL airlines. The arrival and the departure is also
required.

22
 FOOD --
This module displays the menu of the cuisine present,
then takes the desired input of the user. This module later
generates a food receipt.

23
24
 TRANSACTION --
This module has three functions, i.e., payment, date and refund.
1. PAYMENT-
In this function the passenger’s payment details are taken and are
stored in MYSQL. The passenger is provided an internal choice of mode
of payment.
According to the details the passenger inputs, a boarding pass is
generated.

25
BOARDING PASS-
This is the boarding pass the passenger needs to bear to be able board
the flight and seek the services. The data is fetched from the previous
MYSQL tables and using the method of indexing, they are printed in the
boarding pass.

2. DATE-
This function fetches the
current date from the table
created in MYSQL.

26
3. REFUND-
This function works on the refunding system. The passenger is returned
20% of the amount paid as a refund, along with a receipt.

27
 Delete --
This module deletes the existing account of a user if they wish to do so.
This function is called in the main program where deletion is given as
an option. An account will only get deleted if it already exists in the
backend.

28
 Feedback --
This takes the reviews from passengers about the service they received
through ‘reviews’ function and is displayed through show reviews.

29
 string_generator --
This module is used for generating ticket number, flight
number, and batch number.
Batch number is a unique number provided to a passenger
every time they log in or sign up. This number creates a
connection between different tables of MYSQL in the back end.
String and random modules have been used. The string
module is used to fetch all the alphabets and digits using the
appropriate functions.
They are then scrambled using random module.

30
OUTPUT

1) LOGIN OR SIGNUP:

Main form:

Sign up:

Log in:

If the username or password fails to match:

2) MAIN PAGE:

31
3) RESERVATION:
Passenger reservation:

Mode of class:

Mode of flight:

Transaction:

32
Boarding Pass:

4)REFUND

Refund Receipt:

5) FOOD

33
6) DELETE

7)REVIEW

34
LIMITATIONS
 Inability of passengers to select their preferred
seats.
 It needs a proper GDS to interact with different
international passengers.
 It cannot have a track of the ongoing rates of the
reservation and cannot update itself accordingly
without an external help.
 We could not install a typical notification system
for the possible delays in the boarding of flight.

ENHANCEMENTS
 It fulfills all the other requirements of a typical
airline reservation system.
 We have a proper login system, which distinguishes
between different usernames, and maintains its
uniqueness.
 The data is secured in the backend(MYSQL) and are
easily accessible in any of the modules.
 Available for both domestic and international
airlines.
 Easily accessible and available.

35
BIBLIOGRAPHY

 www.google.com

 www.wikipedia.com

 Computer Science with Python by Sumita Arora

36

You might also like