Airlines Booking
Airlines Booking
DHIRUBHAI
AMBANI
RELIANCE
FOUNDATION
SCHOOL
PROJECT ON:
Airlines Booking
Submitted by : 1) Harsh Chinkal
Shah,
2)Darshan Jignesh Solanki
&
3) Lakshit Saini
Class: XII F
CERTIFICATE
Principal:
Acknowledgement:
class XIIth- F
school laboratory.
INDEX:
1.Brief Overview of Project
4.Advantages of Project
5.Limitations of Project
7.Output Screens
9.Bibliography
• Sequential file
• Serial file
• Random (direct access) file BASED ON STORAGE:
-
• Text file
• Binary File
NEED OF
COMPUTERISATION
Over the decades computers and air ticket
bookings have developed gradually, changed with
time. But nobody knew that a time will come when
both these fields will complement each other so well.
Today air ticket booking has reached new heights by
computer aided methods of design. As a result of
which, computer industry has got its new customer.
Computer technology is making waves in the flight
booking zone. Computers are a vital component of the
ticket booking counters. Computer aided design
(CAD) programs reduce the demand for manual
sketches. New software programs continue to replace
old manual skills. Those who lag in math can now
breathe a little easier. Manually figuring of tickets
insists that knowledge. Software programs constantly
evolve. A program used today may be obsolete within
several years. Being trained on today's software does
not guarantee it will be used when you are ready to go
out into the field. Understanding calculations is
timeless, as is computer competency. Software,
however, shifts rapidly.
ADVANTAGES:
1. It generates the report on sales, discounts and flights.
2. Provides filter report on payments and flight booking.
3. We can easily export PDF on sales, products and stocks.
4. Applications can also provide excel export for bookings
and discounts.
5. It deals with monitoring the information and
transaction of ticket bookings.
6. It increases the efficiency of flight booking and
discount.
7. It has higher efficiency of editing, adding and updating
of records.
8. Provides the searching facilities on various factors.
LIMITS:
1. Excel export has not been developed for bookings.
2. The transactions are executed in offline mode only.
3. Online transactions for sales, bookings, or other data
modifications are not possible.
4. Offline reports of sales, bookings, and discounts cannot be
generated due to batch mode execution.
Source code
screening:
àDBMS: MySQL
àHost: local host
àUser: root
àPass: root
àDatabase: hotel
àTable Structure: (Images Bellow)
PYTHON CODE:
importos
import platform
importmysql.connector
import pandas as pd
importdatetime
mydb = mysql.connector.connect(user='root',
password='12345',
host='localhost',
database='air')
mycursor=mydb.cursor()
defregistercust():
L=[]
name=input("enter name:")
L.append(name)
addr=input("enter address:")
L.append(addr)
jr_date=input("enter date of journey:")
L.append(jr_date)
source=input("enter source:")
L.append(source)
destination=input("enter destination:")
L.append(destination)
cust=(L)
sql="insert into
pdata(custname,addr,jrdate,source,destination)va
lues(%s,%s,%s,%s,%s)"
mycursor.execute(sql,cust)
mydb.commit()
defclasstypeview():
print("Do you want to see class type available :
Enter 1 for yes :")
ch=int(input("enter your choice:"))
ifch==1:
sql="select * from classtype"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
defticketprice():
print ("We have the following rooms for you:-")
print ("1. type First class---->rs 6000 PN\-")
print ("2. type Business class---->rs 4000
PN\-")
print ("3. type Economy class---->rs 2000
PN\-")
x=int(input("Enter Your Choice Please-
>"))
n=int(input("No of passenger:"))
if(x==1):
print ("you have opted First class")
s=6000*n
elif (x==2):
print ("you have opted Business class")
s=4000*n
elif (x==3):
print ("you have opted Economy class")
s=2000*n
else:
print ("please choose a class type")
print ("your room rent is =",s,"\n")
defmenuview():
print("Do yoy want to see menu available : Enter
1 for yes :")
ch=int(input("enter your choice:"))
ifch==1:
sql="select * from food"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
deforderitem():
global s
print("Do yoy want to see menu available : Enter
1 for yes :")
ch=int(input("enter your choice:"))
ifch==1:
sql="select * from food"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
defMenuset():
print(“AIR TICKET RESERVATION”)
print("enter 1: To enter customer data")
print("enter 2 : To view class")
print("enter 3 : for ticketamount")
print("enter 4 : for viewing food menu")
print("enter 5 : for food bill")
print("enter 6 :for lugage bill")
print("enter 7 : for complete amount")
print("enter 8 : for exit")
'''try:
#userinput=int(input("pleaseselect an
above option:"))
exceptValueError:
exit("\n hi thats not a number")'''
BIBLIOGRAPHY:
1. http://www.google.com/
2. http://en.wikipedia.org
3. Informatics Practices with python by Sumita Arora
4. NCERT Textbook
5. Together with IP Book
6. Oswal IP Book
7. Arihant(All in One) IP Book
Thank You
Made By:
Harsh Chinkal Shah [Roll No:12606]
Class:
12 F
School:
Kokilaben Dhirubhai Ambani Reliance
Foundation School
Teacher:
Mr. Surjya Bebortha [PGT Informatics
Practices]