Cs Project Air Line Sid
Cs Project Air Line Sid
MIT
TED
BY:
-
M.Anush
CLASS: -
XII-A
INDEX
1. Synopsis
2. System Requirement
3. Packages imported
5. Output Screen
6. Bibliography
Synopsis
The main objective of the python project on Air ticketreservation is to manage the details of
booking, payments, seats, and flights. The project is totally built at administrative end and
only administrator is guaranteed the access. The purpose of the project is tobuild an
application program to reduce the manual work for managing the booking, discounts, seats,
andpayments. It tracks all the details about seats, flight,and payments; it also prints various
reports as per input given by the user.
System requirements
Data file handling has been effectively used in the program. The database is a collection of
interrelated data to serve multiple applications. That is database programs create files of
information. So we see that filesare worked with most, inside the program.
DBMS: The software required for the management ofdata is called as DBMS. It has3
models:
• Relation model
• Hierarchical model
• Network model
CHARACTERISTICS OF DBMS:
• Sequential file
• Serial file
• Random (direct access) file BASED ON STORAGE:-
• Text file
• Binary File
SOURCE CODE:
import os
import platform import
mysql.connectorimportpandas as
pd import datetime
mydb = mysql.connector.connect(user=’root’, password=’1234’,host= ‘localhost’,
database='air')
mycursor=mydb.cursor()
defregistercust():
L=[]
if ch==1:
sql="select * from food"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
def orderitem():
global s
if(d==1):
print("you have ordered tea")
a=int(input("enter quantity"))
s=10*a
print("your amount for tea is :",s,"\n")
elif (d==2):
print("you have ordered coffee")
a=int(input("enter quantity"))
s=10*a
print("your amount for coffee is :",s,"\n")
elif(d==3):
print("you have ordered colddrink")
a=int(input("enter quantity"))
s=20*a
print("your amount for colddrink is :",s,"\n")
elif(d==4):
print("you have ordered samosa")
a=int(input("enter quantity"))s=10*a
print("your amount for samosa is :",s,"\n")
elif(d==5):
print("you have ordered sandwich")
a=int(input("enter quantity"))
s=50*a
print("your amount fopr sandwich is :",s,"\n")
elif(d==6):
print("you have ordered
dhokla")
a=int(input("enter quantity"))
s=30*a
print("your amount for dhokla is :",s,"\n")
elif(d==7):
print("you have ordered
kachori")
a=int(input("enter quantity"))
s=10*a
print("your amount for kachori is :",s,"\n")
elif(d==8):
print("you have ordered milk")
a=int(input("enter quantity"))
s=20*a
print("your amount for kachori is :",s,"\n")
elif(d==9):
print("you have ordered
noodles")
a=int(input("enter quantity"))
s=50*a
print("your amount for noodles is :",s,"\n")
elif(d==10):
print("you have ordered pasta")
a=int(input("enter quantity"))
s=50*a
print("your amount for pasta is :",s,"\n")
else:
print("please enter your choice from the menu")
def lugagebill():
global z
print("Do yoy want to see rate for lugage : Enter 1 for yes: “)
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)
defMenuset():
http://www.google.com/
http://en.wikipedia.org