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

CS project

The document presents a project titled 'Flight Management System' by A. Shiza Naaz from Everwin Vidhyashram Senior Secondary School, fulfilling CBSE requirements for Computer Science. It includes sections on Python programming, advantages of both Python and flight management systems, and outlines the system's scope, hardware/software requirements, and source code. The project aims to automate flight operations, improving efficiency and accuracy in managing flights and passenger information.
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)
2 views

CS project

The document presents a project titled 'Flight Management System' by A. Shiza Naaz from Everwin Vidhyashram Senior Secondary School, fulfilling CBSE requirements for Computer Science. It includes sections on Python programming, advantages of both Python and flight management systems, and outlines the system's scope, hardware/software requirements, and source code. The project aims to automate flight operations, improving efficiency and accuracy in managing flights and passenger information.
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/ 35

EVERWIN VIDHYASHRAM

SENIOR SECONDARY SCHOOL

COMPUTER SCIENCE PROJECT


TOPIC: FLIGHT MANAGEMENT SYSTEM

NAME: A. SHIZA NAAZ


CLASS: XII
SECTION: ELOQUENT
CERTIFICATE

This is to certify that the project entitled “FLIGHT


MANAGEMENT SYSTEM” Is a record of bonafide
work carries out by “A.SHIZA NAAZ” of XII-
ELOQUENT. In partial Fulfilment of the
requirements in COMPUTER SCIENCE prescribed
by CBSE for CBSE BOARD 2025 – 2026 in school
EVERWIN VIDHYASHRAM SENIOR SEC.SCHOOL,
Kolathur, Chennai- 600099.

DATE: PRINCIPAL

INTERNAL EXTERNAL
DECLARATION

We hereby declare that the project work entitled


“FLIGHT MANAGEMENT SYSTEM”, submitted to
EVERWIN VIDHYASHRAM SENIOR SEC-SCHOOL,
Kolathur, Chennai for the subject of “COMPUTER
SCIENCE”. Under the guidance of “A.SANGAVI
PRIYA (PGT)” is a record of original work done by
us. We further declare that this project record or
any part of this has not been submitted elsewhere
for any other class.

DATE: MEMBERS:1

PLACE: NAME: A.SHIZA NAAZ


ACKNOWLEDGEMENT

We wish to express our sincere thanks to


Ms.Vidhya Hari, Principal of EVERWIN
VIDHYASHRAM SENIOR SEC.SCHOOL, Kolathur,
Chennai for guiding us to cause the successful
outcome of this project work. We wish to express
our deep & profound sense of gratitude to our
guide/teacher A.SANGAVI PRIYA(PGT)(Comp. Sc),
for her expert help & valuable guidance,
comments and suggestions. We also place on
record, our sincere gratitude to one and all who,
directly or indirectly have lent their helping hand
in this venture.
INDEX

S.NO CONTENT PAGE NO.


1. INTRODUCTION TO PYTHON 1
2. ADVANTAGES OF PYTHON 2
3. INTRODUCTION TO FLIGHT 4
MANAGEMENT SYSTEM
4. ADVANTAGES OF FLIGHT 7
MANAGEMENT SYSTEM
5. SCOPE OF FLIGHT MANAGEMENT 9
6. HARDWARE AND SOFTWARE OF 10
FLIGHT MANAGEMENT
7. SOURCE CODE 11
8. OUTPUT SCREEN 26
9. CONCLUSION 29
10. BIBLIOGRAPHY 30
INTRODUCTION TO PYTHON

Python is a versatile and widely-used programming language


created by Guido van Rossum and released in 1991. It
emphasizes code readability and allows programmers to
express concepts in fewer lines of code than languages such
as C++ or Java.
Python supports:
 Object-Oriented Programming (OOP)
 Functional Programming
 Imperative and Procedural Programming
Python is used in a variety of fields including:
 Web development (e.g., Django, Flask)
 Data Science and Machine Learning (e.g., Pandas,
NumPy, Scikit-learn, TensorFlow)
 Automation and Scripting
 Desktop Applications
 Game Development
 Cybersecurity and Penetration Test.
1
ADVANTAGES OF PYTHON

Python provides numerous benefits that contribute to its


popularity:
a. Simple and Easy to Learn: Its syntax is close to English,
making it easy to write and understand.
b. Cross-Platform Compatibility:
Python programs can run on Windows, Mac, and Linux
without modification.
c. Open-Source:
Python is free to use and distribute, even for commercial
purposes.
d. Extensive Libraries:
Python offers a rich set of standard and third-party libraries,
reducing development time significantly.

2
e. Strong Community Support:
A large community of developers ensures plenty of tutorials,
forums, and documentation are available.
f. Versatile Applications:
From web development to AI, Python is used in virtually
every domain.
g. Rapid Development:
Its dynamic typing and interpreted nature allow for quick
testing and prototyping.

3
INTRODUCTION TO 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 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
4
(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.
A Flight Management System (FMS) is an essential tool for
airlines and aviation management. It automates the various
processes involved in the operation of flights, improving both
efficiency and accuracy.
What It Does:
 Manages flight schedules
 Handles bookings and cancellations
 Tracks passenger information
 Provides real-time updates on availability
A Python-based FMS can be used in:
 Educational Institutions (to teach system design and
automation)
 Small Travel Agencies
 Prototype Development for Commercial Applications

5
By simulating real-world airline operations, it helps users
understand the complexities of managing flights and
passengers effectively.

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
6
ADVANTAGES OF FLIGHT MANAGEMENT SYSTEM

A well-designed Flight Management System provides


numerous advantages:
a. Streamlined Operations
It automates complex manual tasks like scheduling and
booking.
b. Time-Saving
Real-time booking reduces waiting times and improves
customer satisfaction.
c. Centralized Database
All flight and passenger information is stored centrally,
making access and updates easier.
d. Reduced Human Error
Automated checks and validations reduce mistakes in
bookings and data entry. 7
e. Improved Communication
Staff and customers receive instant updates regarding flight
status or availability.
f. Enhanced Security
Data is securely stored and accessed only by authorized
personnel.
g. Better Customer Experience
Ease of booking, cancellation, and access to information
enhances user experience.

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.
SCOPE OF FLIGHT MANAGEMENT
The scope of a Python-based Flight Management System is
broad and can be tailored based on requirements.

a. Core Features:
 Flight creation and deletion (admin side)
 Seat allocation and availability tracking
 Passenger registration and ticket generation
 Booking history and logs
b. Optional Add-ons:
 Integration with payment gateways
 Email/SMS alerts for booking confirmations
 Real-time tracking using APIs
 Graphical User Interface (GUI) with Tkinter or PyQt
c. Real-world Applications:
 Training and simulations
 Prototyping large-scale airline systems
 Custom internal tools for travel agencies
d. Future Enhancements:
 Cloud integration for remote access
 AI-based suggestions for best travel options
9
HARDWARE AND SOFTWARE REQUIREMENTS

Hardware:
 Minimum 4 GB RAM
 Dual-core processor or higher
 500 MB free storage
 PC
 Mobile phone

Software:
 Python (3.x)
 Text Editor or IDE (e.g., VS Code, PyCharm)
 SQLite or MySQL (optional for database integration)
 Python connector
 Tkinter (for GUI if needed)

10
SOURCE CODE

# FLIGHT MANAGEMENT SYSTEM


# USING PYTHON+MYSQL
import mysql.connector # mysql connector package
obj = mysql.connector.connect(host="localhost", user="root",
passwd="admin")
mycursor = obj.cursor()

mycursor.execute("create database if not exists airlines")


mycursor.execute("use airlines")

# Creating table for food items


mycursor.execute("create table if not exists food_items(sl_no
int auto_increment primary key, food_name varchar(40) not
null, price int not null)")
mycursor.execute("insert into food_items values(null, 'pepsi',
150)")
mycursor.execute("insert into food_items values(null, 'coffee',
70)")
mycursor.execute("insert into food_items values(null, 'tea',
50)")
11
mycursor.execute("insert into food_items values(null, 'water',
60)")
mycursor.execute("insert into food_items values(null, 'milk
shake', 80)")
mycursor.execute("insert into food_items values(null,
'chicken burger', 160)")
mycursor.execute("insert into food_items values(null, 'cheese
pizza', 70)")
mycursor.execute("insert into food_items values(null,
'chicken biryani', 300)")
mycursor.execute("insert into food_items values(null, 'plane
rice', 80)")
mycursor.execute("insert into food_items values(null, 'aloo
paratha', 120)")
mycursor.execute("insert into food_items values(null, 'roti
sabji', 100)")
mycursor.execute("insert into food_items values(null,
'omelette', 50)")

# Creating other tables


mycursor.execute("create table if not exists
luggage(luggage_id int auto_increment primary key, weight
int not null, price int not null)")
mycursor.execute("create table if not exists
cust_details(cust_id int auto_increment primary key,
cust_name varchar(40) not null, cont_no bigint not null)")
mycursor.execute("create table if not exists
flight_details(cus_id int, cus_name varchar(40) not null,
flight_id int)")
obj.commit()

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(null,
'{}')".format(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()

def food():
print("What do you want to do?")
print("1. Add new items")
print("2. Update price")
print("3. Delete items")
x = int(input("Enter your choice: "))
if x == 1:
fname = input("Enter food name: ")
fprice = int(input("Enter food price: "))
mycursor.execute("insert into food_items values(null, '{}',
{})".format(fname, fprice))
elif x == 2:
fid = int(input("Enter food id: "))
fprice = int(input("Enter new price: "))
mycursor.execute("update food_items set price={} where
sl_no={}".format(fprice, fid))
elif x == 3:
fid = int(input("Enter food id: "))
mycursor.execute("delete from food_items where
sl_no={}".format(fid))
else:
print("Please enter a valid option")
food()
obj.commit()

def classtype():
print("What do you want to do?")
print("1. Change the classtype name")
print("2. Change the price of classtype")
x = int(input("Enter your choice: "))
if x == 1:
oname = input("Enter old name: ")
nname = input("Enter new name: ")
mycursor.execute("update classtype set class_name='{}'
where class_name='{}'".format(nname, oname))
elif x == 2:
cname = input("Enter class name: ")
new_price = int(input("Enter new price: "))
mycursor.execute("update classtype set price={} where
class_name='{}'".format(new_price, cname))
else:
print("Please enter a valid option")
classtype()
obj.commit()

def fooditems():
print("\n\nTHE AVAILABLE FOODS ARE:\n")
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("---------------------------")

def admin1():
print("************ WHAT'S YOUR TODAY'S GOAL?
****************")
print("1. Update details")
print("2. Show details")
print("3. Job approval")
x = int(input("Select your choice: "))
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")
elif y == 2:
mycursor.execute("select * from food_items")
elif y == 3:
mycursor.execute("select * from luggage")
elif y == 4:
mycursor.execute("select * from cust_details")
else:
print("Please enter a valid option")
admin1()
z = mycursor.fetchall()
for i in z:
print(i)
elif x == 3:
print("Job approval functionality not implemented yet.")
else:
print("Please enter a valid option")
admin1()

def admin():
while True:
sec = input("Enter the password: ")
if sec == "admin":
admin1()
break
else:
print("Your password is incorrect. Please try again.")

def record():
cid = int(input("Enter your customer id: "))
mycursor.execute("select * from cust_details where
cust_id={}".format(cid))
d = mycursor.fetchone()
if d:
print("YOUR DETAILS ARE HERE...........")
print("Customer ID: ", d[0])
print("Name: ", d[1])
print("Mobile Number: ", d[2])
else:
print("No record found.")

def ticketbooking():
cname = input("Enter your name: ")
cmob = int(input("Enter your mobile no: "))
fid = int(input("Enter flight id: "))
fname = input("Enter your flight name: ")
fcl = input("Enter your class: ")
dept = input("Enter departure place: ")
dest = input("Enter destination: ")
fday = input("Enter flight day: ")
ftime = input("Enter flight time: ")
fprice = int(input("Enter ticket rate: "))
mycursor.execute("insert into cust_details values(null, '{}',
{})".format(cname, cmob))
obj.commit()

def flightavailable():
print("\n\nTHE AVAILABLE FLIGHTS ARE:\n")
mycursor.execute("select * from flight_details")
x = mycursor.fetchall()
for i in x:
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("Business: ", i[6])
print("Middle: ", i[7])
print("Economic: ", i[8])
print("---------------------------")

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:
record()
elif x == 5:
break
else:
print("Please choose a correct option")

print("****************** WELCOME TO LAMNIO AIRLINES


**********************")
print("************ MAKE YOUR JOURNEY SUCCESS WITH
US! *****************")
print("\n\n")

def menu1():
print("**************** YOUR DESIGNATION?
*******************")
print("1. Admin")
print("2. User")
print("3. Exit")
x = int(input("Choose an option: "))
if x == 1:
admin()
elif x == 2:
user()
elif x == 3:
print("Exiting the system.")
else:
print("Please choose a correct option")
menu1()

menu1()

#mysql

 Tables in database airlines

23
 Description and datas in table class_details:

 Description and datas in table customer_details:

24
 Description and datas in table filght_details:

 Description and datas in table food_items:

25
 Description and datas in table luggage

OUTPUT SCREEN
 Program Start

26
 User Menu

 Flight Details Example

27
 Food Menu

 Book Ticket

28
CONCLUSION
The Flight Management System developed using Python
and MySQL is a practical and efficient solution for
automating airline ticket booking and passenger
management. It provides a structured workflow for both
users and administrators.
This project helped demonstrate:
 The power of Python as a front-end scripting language.
 Real-world database operations using MySQL.
 The importance of designing user-friendly menus and
interactive interfaces.
 How modular programming helps in organizing complex
systems.
Through this project, students were able to gain:
 Hands-on experience with MySQL integration.
 Understanding of database CRUD operations (Create,
Read, Update, Delete).
 Skills in creating real-time applications with login-based
access.
 Insights into airline industry workflows such as
bookings, luggage, and food orders.
Moreover, the project can be enhanced further by:
 Adding GUI using Tkinter or PyQt.
 Integrating SMS/email ticket confirmations.
 Adding payment gateway simulation.
 Exporting tickets in PDF format.

29
BIBLIOGRAPHY

 www.google.com

 https://www.geeksforgeeks.org

 https://www.w3schools.com/python/

 Class XI & XII NCERT Book

30

You might also like