0% found this document useful (0 votes)
91 views

I CS Project

Uploaded by

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

I CS Project

Uploaded by

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

EVERGREEN VIDHYAASHRAM

SCHOOLS
CBSE Affiliation No:1931163

(2024-2025)

COMPUTER SCIENCE PROJECT REPORT ON

FLIGHT MANAGEMENT SYSTEM

SUBMITTED BY

N KALAISELVAN

CLASS-XII

UNDER THE GUIDANCE OF

Ms.PANJULAKSHMI
CERTIFICATE

This project entitled “FLIGHT MANAGEMENT SYSTEM”, is the investigatory project work

in COMPUTER SCIENCE (083), successfully completed by, student N. KALAISELVAN of class-XII,

EVERGREEN VIDHYAASHRAM SHCOOL.MADURAI with Register Number _____________________ under the

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.

INTERNAL EXAMINER PRINCIPAL SIGN EXTERNAL EXAMINER


ACKNOWLEDGEMENT

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

facilities for the successful completion of this project.

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

3. HARDWARE AND SOFTWARE REQUIRED

4. FLIGHT MANAGEMENT SYSTEM

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

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:

FLIGHT MANAGEMENT SYSTEM

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. Using various sensors (such as GPS and INS often backed up by radio navigation) to
determine the aircraft's position, the FMS can guide the aircraft along the flight plan. From the
cockpit, the FMS is normally controlled through a Control Display Unit(CDU)which in
corporate a small screen and keyboard or touch screen. The FMS sends the flight plan for
display to the Electronic Flight Instrument System(EFIS), Navigation Display (ND), or
Multifunction Display (MFD). The FMS can be summarized as being a dual system consisting
of the Flight Management Computer(FMC),CDU and a cross talk bus.
The modern FMS was introduced on the Boeing 767, though earlier navigation computers did
exist.[1]Now, systems similar to FMS exist on aircraft as small as the Cessna 182. In its
evolution an FMS ,capabilities and controls. However certain characteristic sare common to all
FMSs.
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:

FLIGHT MANAGEMENT SYSTEM USING PYTHON MYSQL

Import mysql.connector # mysql connector package

obj= mysql.connector.connect(host="localhost",user="root",passwd="admin")
#here objis connection object

CREATING DATABASE & TABLE

mycursor=obj.cursor()

# cursor is used to row by row processing of record in the result set

mycursor.execute("createdatabaseifnotexistsairlines")
# mycursoriscursorobject

#CREATING DATABASE

Mycursor.execute(“createdatabaseifnotexistsairlines”) mycursor.execute("use airlines")

#CREATING TABLE FOR ODER FOOD

mycursor.execute("create table if not exists food_items(sl_no int(4)

auto_incrementprimarykey,food_namevarchar(40)notnull,priceint(4)not null)")

mycursor.execute("insert into food_items values({},'{}',{})".format('null','pepsi',150))

mycursor.execute("insert into food_items values({},'{}',{})".format('null','coffee',70))

mycursor.execute("insert into food_items values({},'{}',{})".format('null','tea',50))

mycursor.execute("insert into food_items values({},'{}',{})".format('null','water',60))

mycursor.execute("insert into food_items values({},'{}',{})".format('null','milk

shake',80)) mycursor.execute("insert into food_items

values({},'{}',{})".format('null','chickenburger',160))
mycursor.execute("insert into food_items values({},'{}',{})".format('null','cheese pizza',70))

mycursor.execute("insert into food_items

values({},'{}',{})".format('null','chickenbiryani',300)) mycursor.execute("insert into

food_items values({},'{}',{})".format('null','plane rice',80)) mycursor.execute("insert into

food_items values({},'{}',{})".format('null','aloo paratha',120)) mycursor.execute("insert

into food_items values({},'{}',{})".format('null','roti sabji',100)) mycursor.execute("insert

into food_items values({},'{}',{})".format('null','omelette',50))

#CREATING TABLE FOR LUGGAGE ENTRY

mycursor.execute("create table if not exists luggage(luggage_id int(4)

auto_incrementprimarykey,weightint(3)notnull,priceint(4)notnull)")

#CREATING TABLE FOR CUSTOMER DETAILS

mycursor.execute("createtableifnotexistscust_details(cust_idint(4) auto_increment primary

key,cust_name varchar(40)not null,cont_no bigint(10) not null)")

#CREATING TABLE FOR CUSTOMER'S FLIGHT DETAILS

mycursor.execute("createtableifnotexistsflight_details(cus_id int(4),cus_name varchar(40)not

null,flight_id)")

obj.commit()

#TO ENTER THE DETAILS OF LUGGAGE

defluggage():

print("whatdoyouwanttodo?") print("1.

add luggage") print("2. delete luggage")

x=int(input("enteryourchoice:")) if x==1:
lname=input("enter luggage type: ")

mycursor.execute("insertintoluggage

values({},'{}'".format('null',lname))

elif x==2:

lid=int(input("enter your luggage id: "))

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.

add new items") print("2. update price")

print("3. delete items")

x=int(input("enteryourchoice:")) if x==1:

fname=input("enter food name: ") fprice=int(input("enter food

price: ")) mycursor.execute("insertintofood_items

values({},'{}',{}".format('null',fname,fprice)) elif x==2:

fid=int(input("enter food id: ")) fprice=int(input("enter new price: "))

mycursor.execute("updatefood_itemssetprice={}where

food_id={}".format(fid,fprice)) elif

x==3:

fid=int(input("enter food id: "))

mycursor.execute("deletefromfood_itemswherewhere

food_id={}".format(fid)) else:

print("****************PLEASEENTERAVALIDOPTION

****************************")

food() obj.commit()

#TO UPDATE THE INFORMATION OF CLASS TYPE

Def classtype():

print("what do you wat to do? ") print("1. change the

classtype name")

print("2.changethepriceofclasstype")

x=int(input("enter your choice: "))


ifx==1:

oname=input("enter old name: ")

nname=input("enter new name: ")

mycursor.execute("updateclasstypeset

'{}'='{}'".format(oname,nname))

deffooditems(): print("")

print("")

print(" THEAVAILABLEFOODSARE: ")

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

#Admin Interface after verifying password

defadmin1():

print("************WHAT'SYOURTODAYSGOAL?****************") print("1.

update details")

print("2.showdetails")

print("3.jobapproval")

x=int(input("selectyourchoice:")) while True:

ifx==1:

print("1.classtype") print("2.

food") print("3. luggage")

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.

food") print("3. luggage")

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*********")

print("***********PLEASE TRY AGAIN*****************") admin()


break

#TO SEETHE RECORDS OF THE CUSTOMER

Def record():

cid=int(input("enter your customer id: "))

mycursor.execute("select*fromcustomer_detailswhere

cus_id={}".format(cid)) d=mycursor.fetchall()

print("YOURDETAILSAREHERE ........................ ")

print("customerid:",d[0])

print("name: ",d[1])

print("mobilenumber:",d[2]) print("flight

id: ",d[3]) print("flight name",d[4])

print("classtype: ",d[5])

print("departureplace",d[6])

print("destination",d[7]) print("flight day:

",d[8])

print("flight time: ",d[9]) print("price of ticket:

",d[10]) print("dateofbookingticket:",d[11])

#TO BOOK THE TICKETS

def ticketbooking():

cname=input("enteryourname:")
cmob=int(input("enteryourmobileno:")) if

cmob==0000000000:

print("MOBILENUMBERCANTBENULL")

ticketbooking() fid=int(input("enter flight id:

")) fcl=input("enter your class: ")

fname=input("enteryourflightname")

dept=input("enterdepartureplace:")

dest=input("enter destination: ") fday=input("enter flight day: ")

ftime=input("enter flight time: ") fprice=input("enter ticket rate:

") mycursor.execute("insertintocustomer_details

values({},'{}',{},{},'{}','{}','{}','{}','{}','{}',{}".format('null',cnam

e,cmob,fid,fname,fcl,dept,dest,fday,ftime,"curdate()")) obj.commit()

#TO SEE THE AVAILABLE FLIGHTS

defflightavailable(): print("")

print("")

print(" THEAVAILABLEFLIGHTSARE: ")

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:

print("**************MAYIHELPYOU?*****************") print("1. flight

details")

print("2.fooddetails") print("3. book

ticket") print("4. my 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("**************** YOUR DESIGNATION? *******************")

print("1. admin")

print("2.user")

print("3. exit")

x=int(input("chooseaoption:")) while True:

ifx==1:
admin()

elif x==2:

user()

else:

print("************PLEASECHOOSEACORRECT

OPTION******************")

menu1()

break

menu1()

#mysql

 Tables in database airlines:


 Description and datas in table class_details:
 Description and datas in table customer_details:

 Descriptionanddatasintableflight_details:
Description and datas in table food_items:

 Description and datas in table luggage:


BIBLOGRAPHY

 www.google.com

 www.wikipedia.org

 www.yahoo.com

 Class XI & XII NCERT Book

You might also like