Computer Science Project (1)
Computer Science Project (1)
Principal’s Examiner’s
Signature: Signature:
2
DECLARATION
Submitted by:
Muzaina Fathima
M.Somika
Krishnasree
3
ACKNOWLEDGEMENT
4
TABLE OF CONTENTS
# Aim
# Introduction
# Requirements
# Coding
# Output
# Bibliography
5
6
AIM
7
INTRODUCTION
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
Reservation:
Passenger details
Cabin class
Mode of flight
Transaction
Exit
9
REQUIREMENTS
HARDWARE:
1) Processor: Pentium(R) G2030 3.70GHz
2) RAM: 4 GB
SOFTWARE:
1) Operating system:
Windows 10
2) Front End:
3) Back End:
10
Files imported
1) Import MYSQL for database connectivity.
ticket number.
3) Import random module to scramble the strings
and time.
FUNCTIONS USED
1) Connect()- to create a connection between python
& MYSQL
2) Cursor () - to execute MYSQL queries in python.
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
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
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.
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-
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:
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
36