Computer Project
Computer Project
COMPUTER SCIENCE
2023-24
FLIGHT MANAGEMENT SYSTEM
Name : SREEJITH M.
Class : XII E
Reg.No. :
External Examiner :
Internal Examiner :
DECLARATION
Principal
TABLE OF CONTENTS
PAGE
Sl.no. DESCRIPTION
NO
1. INTRODUCTION 6-7
3. PROPOSED SYSTEM 9
SYTEM DEVELOPMENT LIFE
4.
CYCLE(SDLC)
10
5. FLOWCHART REPRESENTATION 11
7. OUTPUT 22-23
8. FUTURE ENHANCEMENT 24
11. BIBLIOGRAPHY 28
INTRODUCTION
A flight management system (FMS) is a
fundamental component of a modern airliner's avionics. An FMS
is a specialized computer system that automates a wide variety of
in-flight tasks, reducing the workload on the flight crew to the
point that modern civilian aircraft no longer carry flight engineers
or navigators. A primary function is in-flight management of the
flight plan. The main objective of the python project on Flight
Management System is to manage the details of booking,
payments, seats, and flights. The project is built at
administrative end as well as User End and both Administrator
and User is guaranteed access to use the System. The purpose of
the project is to build an application program to reduce the
manual work for managing the booking, discounts, seats, and
payments. It tracks all the details about seats, flight, and
payments; it also prints various reports as per input given by the
user.
NEED OF FMS
1. It generates the report on sales, discounts and flights.
2. Provides filter report on payments and flight booking.
3. We can easily export PDF on sales, products and stocks.
4. Applications can also provide excel export for bookings
and discounts.
5. It deals with monitoring the information and transaction
of ticket bookings.
6. It increases the efficiency of flight booking and discount.
7. It has higher efficiency of editing, adding and updating of
records.
8. Provides the searching facilities on various factors.
LIMITS OF FMS
1. Excel export has not been developed for bookings.
2. The transactions are executed in offline mode only.
3. Online transactions for sales, bookings, or other data
modifications are not possible.
4. Offline reports of sales, bookings, and discounts cannot be
generated due to batch mode execution.
OBJECTIVE OF THE PROJECT
The objective of this project is to let the students apply
the programming knowledge into a real-world situation/problem
and exposed the students how programming skills helps in
developing a good software
PROPOSED SYSTEM
Today one cannot afford to rely on the fallible
human beings of be really wants to stand against today's
merciless competition where not to wise saying "to err is human"
no longer valid, it's outdated to rationalize your mistake. So, to
keep pace with time, to bring about the best result without
malfunctioning and greater efficiency so to replace the unending
heaps of flies with a much sophisticated hard disk of the
computer.
The
systems development life cycle is a project management
technique that divides complex projects into smaller, more easily
managed segments or phases. Segmenting projects allows
managers to verify the successful completion of project phases
before allocating resources to subsequent phases.
Start Python
Program execution by
(1.”MySQL connecter”)
(2.”Creating Database”)
(3.”Customer Details”)
(4.”Flight Details”)
(5.”Luggage”)
(6.”Food Details”)
(7.”Class type”)
(8.”Admin Interface”)
(9.”User Interface”)
(10.”Main interface”)
Stop
SOURCE CODE
=============================================
obj=mysql.connector.connect(host="localhost",user="root",passwd="admin")
#here obj is connection object
#CREATING DATABASE
Mycursor.execute(“create database if not exists airlines”)
mycursor.execute("use airlines")
obj.commit()
#TO ENTER THE DETAILS OF LUGGAGE
def luggage():
print("what do you want to do?")
print("1. add luggage")
print("2. delete luggage")
x=int(input("enter your choice: "))
if x==1:
lname=input("enter luggage type: ")
mycursor.execute("insert into luggage values({},'{}'".format('null',lname))
elif x==2:
lid=int(input("enter your luggage id: "))
mycursor.execute("delete from luggage where luggage_id={}".format(lid))
else:
print(" **************** PLEASE ENTER A VALID OPTION
**************************** ")
food()
obj.commit()
if x==1:
oname=input("enter old name: ")
nname=input("enter new name: ")
mycursor.execute("update classtype set '{}'='{}'".format(oname,nname))
def fooditems():
print(" ")
print(" ")
print(" THE AVAILABLE FOODS ARE: ")
print(" ")
print(" ")
mycursor.execute("select * from food_items")
x=mycursor.fetchall()
for i in x:
print(" FOOD ID: ",i[0])
print(" FOOD Name: ",i[1])
print(" PRICE: ",i[2])
print("__________________________________________________________________
________________________")
user()
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
obj.commit()
#TO SEE THE AVAILABLE FLIGHTS
def flightavailable():
print(" ")
print(" ")
print(" THE AVAILABLE FLIGHTS ARE: ")
print(" ")
print(" ")
mycursor.execute("select * from flight_details")
x=mycursor.fetchall()
for i in x: print(" ")
print(" Flight ID: ",i[0])
print(" Flight Name: ",i[1])
print(" departure: ",i[2])
print(" Destination: ",i[3])
print(" Take off Day: ",i[4])
print(" Take off time : ",i[5])
print(" bussiness : ",i[6])
print(" middle : ",i[7]) print(" economic : ",i[8])
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
print("****************** WELCOME TO LAMNIO AIRLINES **********************")
print("************ MAKE YOUR JOURNEY SUCCESS WITH US! *****************")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
#Main Interface
def menu1():
print("**************** YOUR DESIGNATION? *******************")
print("1. admin")
print("2. user")
print("3. exit")
x=int(input("choose a option: "))
while True:
if x==1:
admin()
elif x==2:
user()
else:
print("************PLEASE CHOOSE A CORRECT
OPTION******************")
menu1()
break
menu1()
MY SQL
Tables in database airlines:
Description and datas in table class_details:
Description and data in table customer_details:
Pre Requisites :-
------------------
SOFTWARE REQUIREMENTS:
PYTHON 3.10
MYSQL
PYTHON CONNECTOR
BIBLIOGRAPHY
https://kvcoders.in/
https://en.wikipedia.org/wiki/E_(mathematical_constant)