Cs Project
Cs Project
I also thank my parents and friends for their vital support and also for
Encouragement and Motivation given to me for the completion of the
project.
Certificate
This is to certify that Saurabh kumar pal of class 12th (A) has Worked on
the computer science Project “on air tickets reservations”.
He has put on his sincere efforts to collect the reading materials and has
devoted sufficient periods of Practical laboratory work to complete this
project.
Need of computerization
Advantages of project
Disadvantages of project
Output screens
Introduction
The main objective of the python project on air ticket reservation is
to manage the details of booking, seats, flights .
It track all the details about seats, flights, payments it is also print
various report as per input given by the user .
need of computerization
Over the decades 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. As a result computer
Industry has got its new customers. Computer technology is making
Waves in flight booking zones. A programs used today may be saved
For several years. Understanding calculations is timeless, as is
Computer competency. Software, however shifts rapidly.
software and hardware
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.
Dbms : the software required for the management of data. It has three
models :
• Relation model
• Hierarchical model
• Network model
defregistercust():
L =[ ]
Name= input(‘enter the name:’)
L.append(Name)
Addr =input(‘enter the address:’)
L.append(Addr)
jr_date =input(‘enter the date of journey:’)
L.append(jr-date)
source =input(‘enter the source:’)
L.append(source)
destination =input(‘enter the destination:’)
L.append(destination)
cust =(L)
defmenuview():
print(‘do you want to see menu available: enter 1 for yes:’)
ch=int(input(‘enter your choice:’))
ifch==1:
sql=‘select*from food’
mycursor.excecute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
deforderitem():
global s
print(‘do you want to see menu available: enter 1 for yes:’)
ch=int(input(‘enter your choice:’))
ifch==1:
sql=‘select*from food’
mycursor.excecute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
print(‘do you want to purchase from above list: enter your choice:’)
d=int(input(‘enter your choice:’))
if(d==1):
Print(‘you have ordered tea’)
a=int(input(‘enter quantity’))
s=10*a
print(‘amount for tea is:’,s,’\n’)
elif(d==2):
print(‘if you ordered coffee’)
a=int(input(‘enter quantity’))
s=10*a
print(‘amount for coffee is:’,s,’\n’)
elif(d==3):
print(‘if you ordered cold drink ’)
a=int(input(‘enter quantity’))
s=20*a
print(‘amount for cold drink is:’,s,’\n’)
elif(d==4):
print(‘if you ordered samosa’)
a=int(input(‘enter quantity’))
s=10*a
print(‘amount for samosa is:’,s,’\n’)
elif(d==5):
print(‘if you ordered sandwich ’)
a=int(input(‘enter quantity’))
s=50*a
print(‘amount for sandwich is:’,s,’\n’)
elif(d==6):
print(‘if you ordered dhokla ’)
a=int(input(‘enter quantity’))
s=30*a
print(‘amount for dhokla is:’,s,’\n’)
elif(d==7):
print(‘if you ordered kachori ’)
a=int(input(‘enter quantity’))
s=10*a
print(‘amount for kachori is:’,s,’\n’)
elif(d==8):
print(‘if you ordered noodles ’)
a=int(input(‘enter quantity’))
s=50*a
print(‘amount for noodles is:’,s,’\n’)
elif(d==9):
print(‘if you ordered pasta ’)
a=int(input(‘enter quantity’))
s=50*a
print(‘amount for pasta is:’,s,’\n’)
else:
print(‘please enter your choice from menu’)
deflugagebill():
global z
print(‘do you want to see rate for luggage: Enter 1 for yes:’)
print(‘do you want to see menu available: enter 1 for yes:’)
ch=int(input(‘enter your choice:’))
ifch==1:
sql=‘select*from luggage’
mycursor.excecute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
y=int(input(‘enter your weight of extra luggage ---->’))
z=y*1000
print(‘yopur laundarybill:’,z,’\n’)
return z
def lb():
print(z)
def res():
print(s)
defticketamount():
a=input(‘enter customer name:’)
print(‘customer name:’,a,’\n’)
print(‘luggage bill:’)
print(lb)
print(‘food bill:’)
print(‘total amount’)
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 luggage bill’)
print(‘enter 7: for complete amount’)
print(‘enter 8: for exit’)
try:
exceptValueError:
exit(‘\n is that not a number’)
www.wikipedia.org