0% found this document useful (0 votes)
44 views11 pages

Nalin Project Final

Uploaded by

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

Nalin Project Final

Uploaded by

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

CERTIFICATE

Name : Nalin Manickam


Roll no. :
Institution : JSS PUBLIC SCHOOL, OOTY

This is to certify that NALIN MANICKAM of Class XII B has pre-


pared the report on the Project entitled
“FLIGHT MANAGEMENT” in computer laboratory during the
academic year 2024 – 2025 .

The report is the result of his efforts & endeavors. The


Report is found worthy of acceptance as final project report for
the subject Computer Science of Class XII. He has
prepared the report under my guidance.

_______________
ACKNOWLEDGEMENT

I would like to express a deep sense of thanks &


gratitude to my project guide Mrs. Hema Mam PGT
( Computer Science ) for guiding me immensely
through the course of the project. She always
evinced keen interest in my work. Her constructive
advice & constant motivation have been responsible
for the successful completion of this project. My
sincere thanks goes to Mrs. Anita Ramesh, Our
Principal Mam, for her co-ordination in extending
every possible support for the completion of this
project.I also thanks to my parents and my friends for
their motivation & support.I must thanks to my
classmates for their timely help & support for
compilation of this project.Last but not the least, I
would like to thank all those who had helped directly
or indirectly towards the completion of this project.
INTRODUCTION TO PROJECT

Every Airlines needs to maintain a database of the flights available,


Food stock available, Customer deatils, Flight repair record, Customer
luggage record,etc . This database usually contains information like :
1. Arrival timing
2. Food name
3. Food price
4. Food code
5. Airlines name
6. Flight number
7. Departure Destination
8. Arrival Destination
9. Flight time
10. Flight price
11. Class
12. Seat number
13. Customer name
14. Customer Mobile number , etc

Using this Interface Python Program, the database on the flights can
becreated or modified. The same can be used to search the availability
of various flights , Update food stock , Change class , Search customer
record from customer id , Book flight ticket,etc
BASIC REQUIREMENTS

 SYSTEM REQUIREMENTS
1. Ram - 16GB
2. Processor - 2 GHz Quad-Core Intel Core i5

 SOFTWARE USED

1. Mac OS - Sequoia
2. Python IDLE version 3.12
3. Mysql 8.0.40

PYTHON
Python is a dynamic, interpreted (bytecode-compiled) high level language. There are no
type declarations of variables, parameters, functions, or methods in source code. This
makes the code short and flexible, and you lose the compile-time type checking of the
source code

MySQL
MySQL is an open source RDBMS that uses SQL to create and manage databases.As a
relational database, MySQL stores data in tables of rows and columns organized into
schemas. A schema defines how data is organized and stored and describes the
relationship among various tables

MySQL.connector

The MySQL.connector is a database connector, meaning it retrieves data from a databse


using a query. In the data center you can access the connector page for this and other
database connectors by clicking databse in the toolbar at the top of the window. It
enables Python programs to access MySQL databases.

OBJECTIVE

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 incorporates a small screen and keyboard or touchscreen.
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 summarised 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 has
had many different sizes, capabilities and controls. However certain
characteristics are common to all FMSs.

##DATA OF FLIGHTS IN HANGER

cur.exexute("Create table if not exists f_hanger(Code int primary key,\

Name varchar(40),Airlines varchar(40),entry date,exit date)")

cur.exexute("insert into f_hanger values({},{},{},{},{})"\

.format(1503,Boeing,Vistara,2022-06-24,2022-06-28)
cur.exexute("insert into f_hanger values({},{},{},{},{})"\

.format(2606,Dynamics F-111,Spicejet,2022-06-19,2022-06-29)

cur.exexute("insert into f_hanger values({},{},{},{},{})"\

.format(2507,Airbus A380,Air India,2022-05-24,2022-06-28)

cur.exexute("insert into f_hanger values({},{},{},{},{})"\

.format(1705,MIG 21,Etihad Airways.,2022-07-08,2022-12-30)

cur.exexute("insert into f_hanger values({},{},{},{},{})"\

.format(1302,Triple seven,Qatar Airways.,2022-09-04,2022-09-21)

con.commit()

##DATA OF FLIGHTS TO BE REPAIRED

cur.exexute("Create table if not exists f_repair(Code int primary key,\

Name varchar(40),Airlines varchar(40),part_name varchar(20),price int)")

cur.exexute("insert into f_repair values({},{},{},{},{})"\

.format(8746,Gulfstream,Private,radio,97000)

cur.exexute("insert into f_repair values({},{},{},{},{})"\

.format(2341,Boeing 777,Emirates,skin panel,56000)

cur.exexute("insert into f_repair values({},{},{},{},{})"\

.format(9283,Airbus,Alaska Airlines,door,1006789)

cur.exexute("insert into f_repair values({},{},{},{},{})"\

.format(6532,Learjet 21,Saudia,Landing Gear,450000)

cur.exexute("insert into f_repair values({},{},{},{},{})"\

.format(4837,Boeing 747,Riyadh Air,Tires,30000)

con.commit()

##DATA FOR LUGGAGE ON BELT 1

cur.exexute("Create table if not exists luggage_belt1 (C_id int primary key,\


Name varchar(40),Airlines varchar(40),)")

cur.exexute("insert into luggage_belt1 values({},{},{})"\

.format(0098,Ram.V,Indigo)

cur.exexute("insert into luggage_belt1 values({},{},{})"\

.format(0072,Laxman,Vistara)

cur.exexute("insert into luggage_belt1 values({},{},{})"\

.format(0012,Prajwal,Air India)

cur.exexute("insert into luggage_belt1 values({},{},{})"\

.format(0808,Dhikshit,Emirates)

cur.exexute("insert into luggage_belt1 values({},{},{})"\

.format(4512,Purvik,Qatar Airways)

con.commit()

##TO UPDATE THE FOOD DETAILS

cur.exexute("Create table if not exists food_items (Code int primary key,\

Food_name varchar(40),price varchar(40),)")

#######MYSQL PICCC#######

def food():

print("What do you want to do?")

print("1.Add new items")

print("2.Update price")

print("Delete items")

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


if x==1:

fcode=int(input("Enter Food code"))

fname=input("Enter Food name :")

fprice=int(input("Enter food price :"))

cur.execute("insert into food_items values({},{},{})")\

.format(fcode,fname,fprice)

if x==2:

fcode=int(input("Enter Food code"))

fname=input("Enter Food name :")

fprice=int(input("Enter food price :"))

cur.execute("update food_items set price={} where code={}")\

.format(code,fprice)

if x==3:

fcode=int(input("Enter Food code"))

cur.execute("delete from food_items where code={}")\

.format(code)

else:

print("Please enter a valid option")

food()

con.commit()

##TO ADD CUSTOMER DETAILS

cur.execute("create table if not exists cust_detail(cid int primary key\

Cname varchar(25),Airlines varchar(15),Seatno varchar(4))")

def c_details():

ch=="y"

while ch=="y":
cid=int(input("Enter customer id :"))

cname=input("Enter customer name :")

airlines=input("Enter Airlines:")

seatno=input("Enter Seat no.:")

cur.execute("Insert into cust_detail values(}{,{},{},{})")\

.format(cid,cname,airlines,seatno)

con.commit()

ch=input("Enter y to cont q to quit")

c_details()

##TO SEE THE RECORDS OF THE CUSTOMER

def record():

cid=int(input("Enter customer id :"))

cur.execute("select * from cust_details where cid={}").format(cid)

record()

##TO BOOK FLIGHT TICKET

def ticket():

cname=input("Enter customer name :")

mobno=int(input("Enter mobile no."))

if len(mobno)==10:

fid=int(input("Enter mobile no."))

fname=input("Enter name")

fcl=input("Enter class")

dertp=input("Enter departure destination")

arvlp=input("Enter arrival destination")


ftime=input("Enter flight time")

fdate=input("Enter flight date (YYYY-MM-DD)")

fprice=int(input("Enter price"))

##TO UPDATE INFORMATION OF CLASS

def updateclass():

print("1.Change the classtype(First class/Buisness/Economy)")

print("2.Change the price of class ")

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

if x==1:

oname=input("Enter old name :")

nname=input("Enter new name :")

cur.execute("update classtype set '{}'={}").format(oname,nname)

if x==2:

nprice=int(input("Enter new price :"))

cur.execute("update price set {} where class={}").format(nprice,nname)

You might also like