Flight Management System.pdf File
Flight Management System.pdf File
PPU
Computer science project report
principal
ACKNOWLEDGMENT
It is with pleasure that I acknowledge my
sincere gratitude to our teacher, MR.
S.K. MISRA who taught and undertook
the responsibility of teaching the subject
computer science. I have been greatly
benefited from his classes.
I am especially indebted to our Principal
MR. K R MEENA who has always been a
source of encouragement and support
and without whose inspiration this
project would not have been a
successful I would like to place on record
heartfelt thanks to him.
Finally, I would like to express my sincere
appreciation for all the other students
for my batch their friendship & the fine
time that we all shared together
HARDWARE AND SOFTWARE
REQUIRED
HARDWARE
1. PC
2. MOBILE PHONE
SOFTWARE
• PYTHON (latest version)
• MYSQL
• PYTHON CONNECTOR
FLIGHT
The following are the main advantages:
• High Speed: It is the fast speed means of transport. ...
• Minimum Cost: ...
• Strategic Importance: ...
• Easy transport of costly and light goods: ...
• Free from physical barriers: ...
• Useful for Agriculture: ...
• Useful in natural calamities:
NEED OF FMS
1. Minimized documentation and no duplication of records.
2. Reduced paper work.
3. Improved patient care
4. Better Administration Control
5. Faster information flow between various departments
6. Smart Revenue Management
7. Effective billing of various services
8. Exact stock information
#CODE:
obj=mysql.connector.connect(host="localhost",user="root",passwd="admin")
#here obj is connection object
mycursor.execute("create
database if not exists airlines")
#______mycursor is cursor object
#CREATING DATABASE
Mycursor.execute(“create database if not exists airlines”)
mycursor.execute("use airlines")
obj.commit()
else:
print(" **************** PLEASE ENTER A VALID OPTION
**************************** ")
food() obj.commit()
print("__________________________________________________________________
________________________")
user()
#Admin Interface after verifying password def
admin1():
print("************ WHAT'S YOUR TODAYS GOAL? ****************")
print("1. update details") print("2. show details") print("3.
job approval") x=int(input("select your choice: ")) while
True: if x==1:
print("1. classtype")
print("2. food") print("3.
luggage")
x1=int(input("enter your choice"))
if x1==1:
classtype()
elif x1==2:
food() elif
x1==3:
luggage() else:
print(" ********************** PLEASE ENTER A VALID
OPTION ******************************** ")
admin1()
elif x==2:
print("1. classtype")
print("2. food") print("3.
luggage") print("4.
records")
y=int(input("from which table: "))
if y==1:
mycursor.execute("select * from classtype")
else:
mycursor.execute("select * from customer_details")
z=mycursor.fetchall() for i in z:
print(i)
print("**************** THESE ABOVE PEOPLE HAVE BOOKED
TICKET *****************************")
break
#Admin Interface
def admin():
while True:
sec=input("enter the password: ")
if sec=="admin": admin1()
else:
print("************YOUR PASSWORD IS INCORRECT*********")
print("***********PLEASE TRY AGAIN*****************")
admin() break
#TO SEE THE RECORDS OF THE CUSTOMER def
record():
cid=int(input("enter your customer id: "))
mycursor.execute(" select * from customer_details where
cus_id={}".format(cid)) d=mycursor.fetchall()
obj.commit()
print("__________________________________________________________________
________________________")
user()
#USER INTERFACE
def user():
while True:
print("************** MAY I HELP YOU? *****************")
print("1. flight details") print("2. food details")
print("3. book ticket") print("4. my details")
print("5. exit")
x=int(input("enter your choice: "))
if x==1:
flightavailable()
elif x==2:
fooditems()
elif x==3:
ticketbooking() elif
x==4: records()
else:
print("************ PLEASE
CHOOSE A CORRECT OPTION
************")
user() break
menu1()
#mysql
• Tables in database airlines:
• Description and datas in table class_details:
BIBLOGRAPHY
• www.google.com
• www.wikipedia.org
• www.yahoo.com