0% found this document useful (0 votes)
23 views23 pages

Cs Project

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views23 pages

Cs Project

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Pm shree kendriya Vidyalaya no.

Computer science project

Session : 2024 – 2025

Topic : Air ticket reservation


Submitted by : Saurabh kumar pal

Submitted to : pawanjeet singh


acknowledgment

 I am Saurabh Kumar pal of class 12 (A) , pm Shree kendriya


vidayalaya no.2 , new delhi .

 I express my Sincere Gratitude towards My computer science


Teacher Mr. pawanjeet singh for helping me in completing the
Project by useful Ideas and Guidelines . I thank him for encouraging
me throughout and helping in all possible ways .

 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.

 This project may be considered as Practical fulfilment of All India Senior


School Certificate Exam (AISSCE) 2024-2025 conducted by CBSE.

Teacher’s signature principle’s


signature
Index
 Introduction

 Need of computerization

 Software and hardware

 Advantages of project

 Disadvantages of project

 Source code 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 .

The project totally built at administrative and the administrative is


graduated the access .

The propose of the project is to built the application to reduce the


manual work for managing the booking, seats, discounts and
payments .

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

Different types of files (based on access) :


• sequential file
• Serial file
• Random file based on storage :
text file
binary file
advantages
It generates the report on sales, discounts and flights.

Provides filter report on payments and flight booking.

Application can also provides excel export for bookings.

It has higher efficiency of editing, adding and updating of records.

Provides the searching facilities on various factors.


disadvantages
 Excel export has not been developed for bookings.

 The transactions are executed in offline mode only.

 Online transactions for sales, bookings or other data modifications are


not possible.

 Offline reports of sales, bookings and discounts cannot be generated


due to batch mode execution.
SOURCE CODE
• Dbms : mysql
• Host : local host
• User : root
• Password : root
• Database : hotel
• Table structure : (image)
phython code
importos
import platform
importmysql.connector
import pandas as pd
importdatetime
mydb=mysql.connector.connect(user =‘root’, password =‘root’, host =‘localhost’,
database =‘air’)
mycursor =mydb.cursor()

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)

sql=‘insert into pdata(custname,addr,jr_date’source,destination)values(%s,%s,%s,%s.


%s)’
mycursor.ececute(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=myciursor.fetchall()
for x in rows:
defticketprice():
print(‘we have following classes for you:’)
print(‘1. type first class------>rs 6000 pP\-’)
print(‘2. type business class------>rs 4000 pP\-’)
print(‘3. type economy class------>rs 2000 pP\-’)
x=int(input(‘enter your choice please-->’))
n=int(input(‘number 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 the class type’)
print(‘your class is=’,s,’\n’)

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’)

userinput=int(input(‘enter your choice’))


if(userinput==1):
registercust()
elif(userinput==2):
classtypeview()
elif(userinput==4):
menuview
elif(userinput==5):
orderitem()
elif(userinput==6):
luggagebill()
elif(userinput==7)
ticketamount()
elif(userinput==8)
quit()
else:
print(‘enter correct choice’)
output
screen
Bibliography
www.google.com

www.wikipedia.org

Computer science with python by Sumita Arora

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy