Air Ticket Reservation
Air Ticket Reservation
Air Ticket Reservation
Acknowledgement
We, Hirdyansh Bhatt, Hardik Kabtiyal and Anhad
International School,
INDEX
1. Brief Overview of Project
5. Limitations of Project
7. Output Screens
9. Bibliography
• Serial file
• Random (direct access) file BASED ON STORAGE:-
• Text file
• Binary File
NEED FOR
COMPUTERISATION
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.
import platform
import mysql.connector
import pandas as pd
import datetime
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)
L.append(jr_date)
source=input("enter source:")
L.append(source)
destination=input("enter destination:")
L.append(destination)
cust=(L)
mycursor.execute(sql,cust)
mydb.commit()
defclasstypeview():
print("Do you want to see class type available : Enter 1 for yes :")
ifch==1:
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
defticketprice():
n=int(input("No of passenger:"))
if(x==1):
s=6000*n
elif (x==2):
elif (x==3):
s=2000*n
else:
defmenuview():
print("Do yoy want to see menu available : Enter 1 for yes :")
ifch==1:
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 :")
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
if(d==1):
a=int(input("enter quantity"))
s=10*a
elif (d==2):
a=int(input("enter quantity"))
s=10*a
elif(d==3):
s=20*a
elif(d==4):
a=int(input("enter quantity"))
s=10*a
elif(d==5):
a=int(input("enter quantity"))
s=50*a
elif(d==6):
a=int(input("enter quantity"))
s=30*a
elif(d==7):
a=int(input("enter quantity"))
s=10*a
elif(d==8):
a=int(input("enter quantity"))
s=20*a
elif(d==9):
a=int(input("enter quantity"))
s=50*a
elif(d==10):
a=int(input("enter quantity"))
s=50*a
else:
deflugagebill():
global z
print("Do yoy want to see rate for lugage : Enter 1 for yes :")
ifch==1:
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
z=y*1000
print("your laundarybill:",z,"\n")
return z
def lb():
print(z)
def res():
print(s)
defticketamount():
print("lugage bill:")
print(lb)
print("food bill:")
print(“total amount”)
defMenuset():
'''try:
exceptValueError:
if(userinput==1):
registercust()
elif(userinput==2):
classtypeview()
elif(userinput==3):
ticketprice()
elif(userinput==4):
menuview()
elif(userinput==5):
orderitem()
elif(userinput==6):
lugagebill()
elif(userinput==7):
ticketamount()
elif(userinput==8):
quit()
else:
Menuset()
defrunagain():
while(runagn.lower()=='y'):
if(platform.system()=="windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
Menuset()
runagain()
OUTPUT SCREEN
Future enhancements
1. The solutions are given as a proposal. The suggestion is
revised on user request and optimal changes are made.
This loop terminates as soon as the user is gratified with
the proposal.
BIBLIOGRAPHY
1. http://www.google.com/
2. http://en.wikipedia.org
3. Computer science with python
by Sumita Arora