I CS Project
I CS Project
SCHOOLS
CBSE Affiliation No:1931163
(2024-2025)
SUBMITTED BY
N KALAISELVAN
CLASS-XII
Ms.PANJULAKSHMI
CERTIFICATE
This project entitled “FLIGHT MANAGEMENT SYSTEM”, is the investigatory project work
guidance of Ms PANJULAKSHMI] (PGT COMPUTER SCIENCE), for the partial fulfillment of requirements for the
project completion in pursuance of CBSE HIGHER SECONDARY EXAM during the academic year 2023-24.
I would like to praise the almighty for rendering a good help and strength in successfully completing this
investigatory project.
I also wish to thank my parents for supporting me in all means for the completion of this project.
I wish to dedicate my sincere thanks to my school and my principal who has supported me with all the
I dedicate my heartfelt thanks and gratitude to my biology teacher for her complete guidance and support in
completing my project.
I would also like to extend my gratitude towards all teaching and non-teaching staff of EVERGREEN
VIDHYAASHRAM SCHOOL and towards my friends who have supported me a lot in the completion of
this project.
INDEX
S.NO TITLE
1. CERTIFICATE
2. ACKNOWLEDGEMENT
5. INTRODUCTION
6. EXISTING SYSTEM
7. DATABASE
8. BIBILOGRAPHY
HARDWARE AND SOFTWARE REQUIRED
HARDWARE
1. PC
2. MOBILEPHONE
SOFTWARE
PYTHON (latest version)
MYSQL
PYTHONCONNECTOR
FLIGHT
obj= mysql.connector.connect(host="localhost",user="root",passwd="admin")
#here objis connection object
mycursor=obj.cursor()
mycursor.execute("createdatabaseifnotexistsairlines")
# mycursoriscursorobject
#CREATING DATABASE
auto_incrementprimarykey,food_namevarchar(40)notnull,priceint(4)not null)")
values({},'{}',{})".format('null','chickenburger',160))
mycursor.execute("insert into food_items values({},'{}',{})".format('null','cheese pizza',70))
auto_incrementprimarykey,weightint(3)notnull,priceint(4)notnull)")
null,flight_id)")
obj.commit()
defluggage():
print("whatdoyouwanttodo?") print("1.
x=int(input("enteryourchoice:")) if x==1:
lname=input("enter luggage type: ")
mycursor.execute("insertintoluggage
values({},'{}'".format('null',lname))
elif x==2:
mycursor.execute("deletefromluggagewhere
luggage_id={}".format(lid))
else:
print("****************PLEASEENTERAVALIDOPTION
****************************") food()
obj.commit()
#TO UPDATE THE INFORMATION OF FOOD DETAILS
Def food():
print("whatdoyouwanttodo?") print("1.
x=int(input("enteryourchoice:")) if x==1:
mycursor.execute("updatefood_itemssetprice={}where
food_id={}".format(fid,fprice)) elif
x==3:
mycursor.execute("deletefromfood_itemswherewhere
food_id={}".format(fid)) else:
print("****************PLEASEENTERAVALIDOPTION
****************************")
food() obj.commit()
Def classtype():
classtype name")
print("2.changethepriceofclasstype")
mycursor.execute("updateclasstypeset
'{}'='{}'".format(oname,nname))
deffooditems(): print("")
print("")
print("")
print("")
mycursor.execute("select*fromfood_items")
x=mycursor.fetchall() for i in
x:
print("FOODID:",i[0])
print("FOODName:",i[1])
print("PRICE:",i[2])
print("
")
user()
defadmin1():
print("************WHAT'SYOURTODAYSGOAL?****************") print("1.
update details")
print("2.showdetails")
print("3.jobapproval")
ifx==1:
print("1.classtype") print("2.
x1=int(input("enteryourchoice")) if x1==1:
classtype() elif
x1==2:
food()
elifx1==3:
luggage() else:
print("**********************PLEASEENTERAVALID OPTION
******************************** ")
admin1()
elifx==2:
print("1.classtype") print("2.
print("4. records")
y=int(input("fromwhichtable:")) if y==1:
mycursor.execute("select*fromclasstype") else:
mycursor.execute("select*fromcustomer_details") z=mycursor.fetchall()
foriinz:
print(i)
print("****************THESEABOVEPEOPLEHAVEBOOKED
TICKET *****************************")
break
#Admin Interface
defadmin():
whileTrue:
sec=input("enterthepassword:") if
sec=="admin":
admin1() else:
print("************YOURPASSWORDISINCORRECT*********")
Def record():
mycursor.execute("select*fromcustomer_detailswhere
cus_id={}".format(cid)) d=mycursor.fetchall()
print("customerid:",d[0])
print("name: ",d[1])
print("mobilenumber:",d[2]) print("flight
print("classtype: ",d[5])
print("departureplace",d[6])
",d[8])
",d[10]) print("dateofbookingticket:",d[11])
def ticketbooking():
cname=input("enteryourname:")
cmob=int(input("enteryourmobileno:")) if
cmob==0000000000:
print("MOBILENUMBERCANTBENULL")
fname=input("enteryourflightname")
dept=input("enterdepartureplace:")
") mycursor.execute("insertintocustomer_details
values({},'{}',{},{},'{}','{}','{}','{}','{}','{}',{}".format('null',cnam
e,cmob,fid,fname,fcl,dept,dest,fday,ftime,"curdate()")) obj.commit()
defflightavailable(): print("")
print("")
print("")
print("")
mycursor.execute("select*fromflight_details") x=mycursor.fetchall()
foriinx:
print("")
print("FlightID:",i[0])
print("FlightName:",i[1])
print("departure:",i[2])
print("Destination:",i[3])
print("TakeoffDay:",i[4])
print("Takeofftime:",i[5])
print("bussiness:",i[6])
print("middle:",i[7])
print("economic:",i[8])
print("
")
user()
#USER INTERFACE
Def user():
whileTrue:
details")
print("5. exit")
x=int(input("enteryourchoice:")) if x==1:
flightavailable() elif
x==2:
fooditems() elif
x==3:
ticketbooking() elif
x==4:
records() else:
print("************PLEASECHOOSEACORRECTOPTION
************")
user()
break
print("******************WELCOMETOLAMNIOAIRLINES
**********************")
print("************MAKEYOURJOURNEYSUCCESSWITHUS!
*****************")
print("")
print("")
print("")
print("")
print("")
#Main Interface
defmenu1():
print("1. admin")
print("2.user")
print("3. exit")
ifx==1:
admin()
elif x==2:
user()
else:
print("************PLEASECHOOSEACORRECT
OPTION******************")
menu1()
break
menu1()
#mysql
Descriptionanddatasintableflight_details:
Description and datas in table food_items:
www.google.com
www.wikipedia.org
www.yahoo.com