0% found this document useful (0 votes)
33 views31 pages

Computer Project Final

Uploaded by

geethaemmanuel3
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)
33 views31 pages

Computer Project Final

Uploaded by

geethaemmanuel3
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/ 31

BETHANY NAVAJEEVAN SENIOR SECONDARY SCHOOL

Affiliated to CBSE Board, Affiliation No: 1931074

BETHANY NAGAR, VENCODE

ACADEMIC YEAR 2024-2025

PROJECT REPORT ON

“FLIGHT MANAGEMENT SYSTEM ”

REGISTER NO. :

NAME : V.EMMANUEL

GRADE & DIVISION : XII ROSE

SUBJECT : COMPUTER SCIENCE

SUBJECT CODE : 083

1
BETHANY NAVAJEEVAN SENIOR SECONDARY SCHOOL
Affiliated to CBSE Board, Affiliation No: 1931074
BETHANY NAGAR, VENCODE
DEPARTMENT OF COMPUTER SCIENCE

CERTIFICATE

“ This is to certify that V.Emmanuel, a student of Grade XII Rose, has


successfully completed the project work entitled ' A FLIGHT MANAGEMENT
SYSTEM ' in the subject of Computer Science (083) under the guidance of
Mr.James M.E,B.Ed during the academic year 2024-2025, for the purpose of the
Practical Examination conducted by AISSCE, New Delhi."

Name of the Examiner Name of the Subject Teacher

Signature of the Examiner Signature of the Subject Teacher

Signature of the Principal

2
STUDENT DECLARATION

I, V.Emmanuel, hereby declare that the project report entitled ' A FLIGHT
MANAGEMENT SYSTEM ' submitted to Bethany Navajeevan Senior
Secondary School is an original work carried out by me under the guidance of
Mr.James M.E,B.Ed . This report is the result of my independent research and
effort and has not been previously submitted for any examination or assessment. It
is submitted for the Practical Examination conducted by AISSCE, New Delhi,
during the academic year 2024-2025.

Date:
Place:

Signature of Candidate

3
ACKNOWLEDGEMENT

I acknowledge the Lord Almighty for giving me knowledge and strength to


complete this project.

I extend my deep sense of gratitude and sincere thanks to our Correspondent


Fr. THOMAS REGI OIC and Principal Fr. SIJO THOMAS OIC, Bethany
group of Institutions for giving me an opportunity to be a student of this reputed
institutions.

I would like to extend my sincere appreciation to our Vice Principal,


Mr.FRANCIS EBANEZER, for his invaluable support and guidance throughout
this project.

I extend my respect to our Academic Mentor Mr. SIBIN JOSE, M.A.,


B.Ed. for his valuable support in carrying my project work.

I also express my sense of gratitude to my Project Guide Mr.James ,


M.E,B.Ed for his valuable suggestion and guidance for doing this project.

I also express my gratitude to all the faculty members, parents and my


fellow mates who have helped me to carry out this work.

V.EMMANUEL

4
TABLE OF CONTENT

Sl.No. Topic Page No.

1. ABSTRACT 6

2. OBJECTIVES 7

3. INTRODUCTION 8

4. PROJECT REQUIREMENTS 9

5. SOURCE CODE 10-18

6. OUTPUT 19-24

7. ADVANTAGES AND DISADVANTAGES 25-26

8. APPLICATIONS 27-28

9. CONCLUSION AND FUTURE SCOPE 29-30

10. BIBLIOGRAPHY 31

5
ABSTRACT

A Flight Management System (FMS) is a vital software application used in


aviation to plan, monitor, and manage flight operations. The system integrates
various aspects of flight management, such as flight planning, route optimization,
fuel management, and scheduling, to improve operational efficiency and ensure
safety. By leveraging databases to store and manage crucial information, an FMS
simplifies complex flight operations and enhances the ability to make informed
decisions in real-time.

In this implementation, MySQL, a widely used relational database management


system (RDBMS), is utilized to manage and store the data required for flight
operations. MySQL serves as the backbone for storing essential data such as flight
schedules, crew assignments, aircraft details, maintenance records, and flight
performance metrics. This allows for easy retrieval, updating, and reporting of data
necessary for managing flights efficiently.

6
OBJECTIVES

Key functionalities of an FMS in MySQL include:

1. Flight Scheduling: The system allows airlines to schedule flights, taking


into account aircraft availability, crew shifts, and airport regulations. The
MySQL database stores flight details such as departure and arrival times,
flight numbers, and passenger counts.
2. Aircraft Data Management: Information about aircraft performance, fuel
consumption, and maintenance records are stored in relational tables. The
system ensures that this data is regularly updated and linked to flight records
for maintenance alerts and performance analysis.
3. Route and Flight Plan Optimization: By integrating external APIs or using
pre-existing data, the system can store information about optimal flight
paths, air traffic regulations, and weather conditions to assist in planning the
most efficient routes.
4. Fuel Management: The MySQL database stores fuel consumption data for
each flight, helping to optimize fuel usage based on aircraft load, route, and
weather conditions.
5. Real-Time Updates and Reporting: The system provides real-time
tracking and status updates, including delays, cancellations, and changes in
flight plans. Reports and analytics are generated by querying the MySQL
database, helping airline operators monitor performance and make data-
driven decisions.
6. Security and Access Control: MySQL supports user
authentication and access control, ensuring that sensitive flight and
passenger information is protected and only accessible to
authorized personnel.

7
INTRODUCTION

A Flight Management System (FMS) is a comprehensive software application


designed to streamline and manage various aspects of airline operations. These
systems enable airlines, airports, and other stakeholders in the aviation industry to
handle flight scheduling, reservations, passenger information, staff allocation, and
cargo management efficiently.

Purpose of the System

The FMS using MySQL provides a robust, reliable, and scalable database solution
for managing vast amounts of aviation data. It enables the efficient handling of
essential operations, such as:

1. Flight Scheduling and Management: Managing flight schedules, assigning


aircraft, and monitoring on-time performance.

2. Passenger Reservations: Booking, ticketing, and maintaining passenger


records.

3. Crew Management: Assigning flight crew to flights and ensuring


compliance with aviation regulations.

4. Airport Operations: Coordinating ground staff, baggage handling, and


boarding processes.

5. Revenue Management: Tracking ticket sales, cargo income, and


operational costs.

8
PROJECT REQUIREMENTS

Technologies Used:

• Python (for the frontend)


• MySQL (for the backend database)
• MySQL Connector (Python library to connect to MySQL)

Project Modules:

1. Flight Management Module

2. Reservation Management Module

3. Crew Management Module

4. Schedule Management Module

5. Airport Management Module

6. User Management Module

7. Report Generation Module

8. Feedback and Support Module

9
SOURCE CODE

The source code for the flight management System using Python and
MySQL is given in this section.

#code:

import mysql.connector

# Establishing connection

obj = mysql.connector.connect(host="localhost", user="root", passwd="admin")

mycursor = obj.cursor()

# Creating database

mycursor.execute("CREATE DATABASE IF NOT EXISTS airlines")

mycursor.execute("USE airlines")

# Creating tables

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

10
""")

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

""")

11
# Inserting food items

def insert_food_items():

food_data = [

('pepsi', 150),

('coffee', 70),

('tea', 50),

('water', 60),

('milk shake', 80),

('chicken burger', 160),

('cheese pizza', 70),

('chicken biryani', 300),

('plane rice', 80),

('aloo paratha', 120),

('roti sabji', 100),

('omelette', 50)

for food_name, price in food_data:

mycursor.execute(

"INSERT INTO food_items (food_name, price) VALUES (%s, %s)",

(food_name, price)

obj.commit()

insert_food_items()

12
# Luggage operations

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

weight = int(input("Enter luggage weight: "))

price = int(input("Enter luggage price: "))

mycursor.execute(

"INSERT INTO luggage (weight, price) VALUES (%s, %s)",

(weight, price)

elif x == 2:

lid = int(input("Enter your luggage ID: "))

mycursor.execute("DELETE FROM luggage WHERE luggage_id = %s", (lid,))

else:

print("Invalid option.")

obj.commit()

# Food operations

def food():

13
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 (food_name, price) VALUES (%s, %s)",

(fname, fprice)

elif x == 2:

fid = int(input("Enter food ID: "))

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

mycursor.execute(

"UPDATE food_items SET price = %s WHERE sl_no = %s",

(fprice, fid)

elif x == 3:

fid = int(input("Enter food ID: "))

mycursor.execute("DELETE FROM food_items WHERE sl_no = %s", (fid,))

else:

print("Invalid option.")

14
obj.commit()

# Display available food items

def fooditems():

print("\nThe available foods are:")

mycursor.execute("SELECT * FROM food_items")

for i in mycursor.fetchall():

print(f"FOOD ID: {i[0]}, FOOD NAME: {i[1]}, PRICE: {i[2]}")

# Admin interface

def admin():

while True:

sec = input("Enter the password: ")

if sec == "admin":

admin1()

else:

print("Incorrect password. Please try again.")

# Admin main menu

def admin1():

print("\nWhat do you want to do?")

print("1. Update details")

print("2. Show details")

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

15
if x == 1:

print("1. Food")

print("2. Luggage")

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

if x1 == 1:

food()

elif x1 == 2:

luggage()

else:

print("Invalid option.")

elif x == 2:

print("1. Food")

print("2. Luggage")

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

if y == 1:

mycursor.execute("SELECT * FROM food_items")

for i in mycursor.fetchall():

print(i)

elif y == 2:

mycursor.execute("SELECT * FROM luggage")

for i in mycursor.fetchall():

print(i)

else:

print("Invalid option.")

16
# User operations

def user():

print("\nWelcome to the user interface")

print("1. View available flights")

print("2. View food details")

print("3. Exit")

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

if x == 1:

flightavailable()

elif x == 2:

fooditems()

elif x == 3:

print("Goodbye!")

exit()

else:

print("Invalid option.")

# View available flights

def flightavailable():

print("\nThe available flights are:")

mycursor.execute("SELECT * FROM flight_details")

for i in mycursor.fetchall():

print(f"Flight ID: {i[0]}, Flight Name: {i[1]}, Departure: {i[2]}, Destination: {i[3]}")

17
# Main menu

def menu1():

print("\nMain Menu")

print("1. Admin")

print("2. User")

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

if x == 1:

admin()

elif x == 2:

user()

else:

print("Invalid option.")

menu1()

menu1()

18
OUTPUT

Tables in database airlines:

19
Description and datas in table class_details:

20
Description and datas in table customer_details:

21
Description and datas in table flight_details:

22
Description and datas in table food_items:

23
Description and datas in table luggage:

24
ADVANTAGES AND DISADVANTAGES

Advantages of a Flight Management System in SQL:


1. Efficient Data Management:
o SQL databases provide structured storage for large amounts of flight-
related data like schedules, passenger records, luggage details, and
transactions.
o Ensures data consistency, reliability, and integrity.
2. Ease of Querying:
o SQL enables quick data retrieval and manipulation through powerful
queries, allowing efficient access to flight details, customer records,
and bookings.
3. Scalability:
o SQL-based systems can handle growing data needs as the airline
expands its operations, with support for indexing and optimized
queries for faster processing.
4. Data Security:
o Offers robust authentication and authorization mechanisms to
safeguard sensitive customer and airline data.
5. Data Relationships:
o With relational databases, managing interdependent data (e.g.,
between flights, customers, and bookings) becomes straightforward.
6. Automation Support:
o Enables the automation of repetitive tasks like generating reports,
updating schedules, and managing inventory.

25
Disadvantages of a Flight Management System in SQL:
1. Complexity in Setup:
o Setting up and designing a relational database for a flight management
system requires skilled professionals and significant time investment.
2. Scalability Limits:
o Although SQL databases are scalable, handling extremely high loads
(e.g., during peak travel times) may require advanced database
optimization or migration to distributed systems.
3. Cost of Maintenance:
o Maintaining a robust SQL server with backups, security updates, and
performance tuning can be expensive.
4. Dependency on Structured Data:
o SQL databases are less suited for handling unstructured data like
multimedia content, which may also be part of modern flight systems.
5. Performance Bottlenecks:
o Poorly optimized queries or database design can lead to slow
performance, particularly with large datasets or complex joins.
6. Limited Flexibility for Advanced Features:
o Implementing real-time analytics or predictive features may require
integration with additional tools outside the SQL environment.

26
APPLICATIONS

• Flight Scheduling and Management:

• Maintain flight schedules, routes, and operational timings.


• Query schedules for specific routes or dates using SQL for efficient
operations.

• Passenger Data Management:

• Store and manage customer details, including personal information, contact


details, and booking history.
• Retrieve and update passenger information for check-ins or rescheduling.

• Ticket Booking System:

• Enable real-time booking of tickets, including class selection (e.g., economy,


business).
• SQL queries help verify seat availability and update the database upon
successful booking.

• Baggage Handling:

• Track luggage weight, fees, and unique baggage IDs.


• Use SQL to generate reports on lost or delayed baggage for specific flights.

• Food and Catering Management:

• Manage in-flight food menus, pricing, and availability.


• Automate updates to food inventory using SQL queries when stock changes.

• Customer Relationship Management (CRM):

• Store customer feedback and loyalty program data.


• Generate SQL-based reports to analyze customer preferences and improve
services.

• Staff and Crew Allocation:

• Allocate flight crew and staff schedules effectively.

27
• Track crew availability and assignments using SQL.

• Revenue and Financial Reporting:

• Record ticket sales, baggage fees, and other revenues.


• Generate financial reports using SQL queries for accounting and budgeting.

• Flight Status Updates:

• Provide real-time information about flight delays, cancellations, or arrivals.


• Use SQL to fetch flight data for integration with public-facing applications.

• Emergency and Contingency Planning:

• Maintain contingency plans, such as re-routing flights or handling


emergencies.
• Query backup flight plans or alternate crew availability in critical scenarios.

28
CONCLUSION AND FUTURE SCOPE

The Flight Management System (FMS) plays a crucial role in the aviation
industry by streamlining the operations of airlines, airport authorities, and other
stakeholders. SQL serves as a fundamental component in building the backend of
such systems, providing reliable and scalable solutions for managing vast amounts
of data. By organizing information related to flight schedules, bookings,
passengers, staff, baggage, food, and financial transactions in relational databases,
SQL ensures that all aspects of flight management can be accessed, updated, and
processed efficiently.

Key conclusions drawn from the implementation of a Flight Management System


in SQL include:

1. Data Centralization: SQL databases centralize all the critical data (e.g.,
flights, bookings, passengers, staff, etc.), ensuring accessibility, consistency,
and security.
2. Improved Efficiency: With automated queries for booking, cancellations,
check-ins, and updates, airlines can significantly improve operational
efficiency and reduce human errors.
3. Real-time Processing: The system facilitates real-time flight data
processing, enabling up-to-date information for both staff and passengers
(e.g., seat availability, baggage handling).
4. Better Decision Making: SQL allows airlines to extract valuable insights
from stored data, enabling better decision-making for flight scheduling,
resource allocation, and customer service enhancements.
5. Customer Satisfaction: Automation of flight management processes
enhances customer experience by offering timely bookings, real-time
updates, and fast check-ins.

Future Scope of Flight Management System (SQL)

While current flight management systems are highly effective, there are multiple
opportunities for growth and evolution. As technology advances, the following
improvements and innovations can further enhance Flight Management Systems:

1. Integration with AI and Machine Learning:

29
o Implementing AI algorithms and machine learning models for
predictive analysis (e.g., forecasting demand for specific routes,
weather prediction impact, optimizing fuel usage).
o SQL databases could store historical data for AI systems to analyze
trends and provide dynamic pricing, personalized offers, and
improved flight scheduling.
2. Cloud Integration:
o Moving to cloud-based SQL databases (e.g., Amazon RDS, Microsoft
Azure SQL Database) will ensure better scalability, security, and
performance.
o Cloud-based systems could allow airlines to process large volumes of
data in real time and enable better disaster recovery.
3. Mobile and Web Application Integration:
o Enabling real-time access to flight schedules, ticket booking, and
customer support via mobile apps or web portals.
o SQL queries can be optimized for mobile interfaces, offering
customers direct access to services like online check-ins, seat
selection, and baggage tracking.
4. Blockchain for Data Integrity and Security:
o Integrating blockchain technology for secure, transparent, and
immutable flight data (e.g., passenger information, ticketing, and
flight logs).
o Blockchain can enhance fraud prevention and simplify the process of
verifying flight information.

30
BIBLIOGRAPHY

1. https://www.leadsquared.com/industries/healthcare/hospital-management-
system-hms/
2. https://www.shmsolutions.in/
3. https://docpulse.com/
4. Geekforgeeks.org
5. https://www.geeksforgeeks.org/

31

You might also like