0% found this document useful (0 votes)
12 views15 pages

Vaibhav Project

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)
12 views15 pages

Vaibhav Project

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/ 15

S.

R GLOBAL SCHOOL LUCKNOW

COMPUTER SCIENCE (083)


(PYTHON PROGRAMMING AND SQL)
PRACTICAL FILE
Session 2024-2025

SUBMITTED TO: SUBMITTED BY:


MOHAMMAD BILAL AHMAD Vaibhav Singh
ASST TEACHER 12-A1
(PGT- Comp Sci) B.RollNo.
CERTIFICATE
This is to certify that Shashi Verma of class 12–A1 from
S. R Global School, Lucknow has successfully completed her
Computer Science Practical File based on Python and File
handling CSV module under the guidance of Mr .Mohammad
Bilal Ahmad for the academic session 2024- 2025. He has taken
proper care and show utmost sincerity in the completion of this
project file. I certify that this project file is up to my expectation and
as per the guidelines issued by C.B.S.E

Mr. Mohammad Bilal Ahmad


Internal Examiner External Examiner
S R Global School Appoint by CBSE
Lucknow

Mr. C.K Ojha


Principal
S. R Global School
Lucknow School Stamp
ACKNOWLEDGEMENT
I would like to express a deep sense of thanks and gratitude
to my Computer Teacher Mr. Mohammad Bilal Ahmad ,
he always evinced keep interest in my work. His
constructive advice and constant motivation have been
responsible for the successful completion of this practical
file and I am also thankful to my Principal Mr. C. K Ojha
Sir who gave me the golden opportunity to do this
wonderful practical based on programming concept
(Python and My SQL Programming) which also helped
me in doing a lot of research and I came to know about so
many new things and I am really thankful to them and I am
also thankful to my parents and friends who helped me for
completing this Python Project file with in the limited time
frame.

Vaibhav Singh
B. Roll No-
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 (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.
FEATURES OF FMS

The flight management system (FMS) in an aircraft is a specialized computer


system that automates various in-flight tasks, reducing the workload on the flight
crew. Some of its key features include:
Navigation: The FMS supports navigation functions by using various sensors such
as GPS and INS to guide the aircraft along the flight plan

Flight Planning: It allows for the pre-programming of routes and the modification
of the flight plan in-flight

Trajectory Prediction: The FMS can predict the aircraft's trajectory based on the
programmed flight plan and performance data

Performance Computations: It provides performance information such as gross


weight, fuel weight, and center of gravity, which are essential for the efficient
management of the aircraft during the flight

In-flight Guidance: The FMS generates steering commands or visual cues to advise
the flight crew on how to follow the programmed flight plan

In order to implement these functions, the FMS interfaces with a variety of other
avionics systems and comprises components such as the Flight Management
Computer (FMC), Automatic Flight Control System (AFCS), Aircraft Navigation
System, and Electronic Flight Instrument System (EFIS)
SOURCE CODE IN PYTHON
import csv
import os

FLIGHTS_FILE = 'flights.csv'

def load_flights():
try:
with open(FLIGHTS_FILE, 'r') as file:
reader = csv.DictReader(file)
flights = list(reader)
return flights
except FileNotFoundError:
return []

def save_flights(flights):
with open(FLIGHTS_FILE, 'w', newline='') as file:
fieldnames = ['FlightNumber', 'DepartureCity', 'DestinationCity', 'DepartureTime']
writer = csv.DictWriter(file, fieldnames=fieldnames)
writer.writeheader()
writer.writerows(flights)

def add_flight():
flight_number = input("Enter Flight Number: ")
departure_city = input("Enter Departure City: ")
destination_city = input("Enter Destination City: ")
departure_time = input("Enter Departure Time: ")

new_flight = {
'FlightNumber': flight_number,
'DepartureCity': departure_city,
'DestinationCity': destination_city,
'DepartureTime': departure_time
}

flights.append(new_flight)
save_flights(flights)
print("Flight added successfully!")

def view_flights():
if flights:
for flight in flights:
print(flight)
else:
print("No flights available.")

def search_flight_by_destination():
destination = input("Enter Destination City to search: ")
matching_flights = [flight for flight in flights if flight['DestinationCity'] ==
destination]

if matching_flights:
print("Matching Flights:")
for flight in matching_flights:
print(flight)
else:
print("No matching flights found.")

def update_flight():
flight_number = input("Enter Flight Number to update: ")
for flight in flights:
if flight['FlightNumber'] == flight_number:
print("Flight found. Enter new details:")
flight['DepartureCity'] = input("Enter new Departure City: ")
flight['DestinationCity'] = input("Enter new Destination City: ")
flight['DepartureTime'] = input("Enter new Departure Time: ")
save_flights(flights)
print("Flight updated successfully!")
return
print("Flight not found.")

def delete_flight():
flight_number = input("Enter Flight Number to delete: ")
for flight in flights:
if flight['FlightNumber'] == flight_number:
flights.remove(flight)
save_flights(flights)
print("Flight deleted successfully!")
return
print("Flight not found.")

def main():
while True:
print("\nFlight Management System")
print("1. Add Flight")
print("2. View Flights")
print("3. Search Flights by Destination")
print("4. Update Flight")
print("5. Delete Flight")
print("6. Exit")
choice = input("Enter your choice: ")

if choice == '1':
add_flight()
elif choice == '2':
view_flights()
elif choice == '3':
search_flight_by_destination()
elif choice == '4':
update_flight()
elif choice == '5':
delete_flight()
elif choice == '6':
print("Exiting program. Goodbye!")
break
else:
print("Invalid choice. Please enter a valid option.")

if __name__ == "__main__":
flights = load_flights()
main()
SCREENSHOTS

1.MAIN MENU

2. ADDING FLIGHT

3. VIEWING FLIGHT
4. SEARCHING FLIGHTS BY DESTINATION

5. UPDATING FLIGHT

6. DELETING FLIGHT
7. EXITING FLIGHT
SCREENSHOT OF CSV DATABASE
LIMITATION OF FMS

The Flight Management System (FMS) has several limitations that can affect its
performance, including:

 Complexity: FMS is a complex system that requires proper programming


and operation to avoid errors

 Regular updates: FMS requires regular updates to its database to ensure


accurate navigation and performance optimization

 Inability to handle unexpected situations: FMS may not be able to handle


unexpected situations, such as sudden changes in weather or air traffic,
which can require manual intervention by the pilots

 Compatibility issues: FMS may not be compatible with all air traffic
control systems, which can limit its effectiveness in certain regions or
airports

 Reliance on accurate weather forecasts: FMS relies on accurate weather


forecasts for optimal flight planning, and any inaccuracies in the forecasts
can impact its performance

 Limited capability in predicting certain weather elements: While FMS


can utilize weather forecasts for flight planning, it may be limited in its
ability to predict certain weather elements, which can affect its accuracy in
route planning and performance optimization

Despite these limitations, FMS remains a crucial component of modern aviation,


enhancing the efficiency and safety of in-flight operations
BIBLOGRAPHY

 Computer Science with Summita Arora.

 Computer Science with Preeti Arora .

 IDLE (Python 3.12 64-BIT)

 www.wikipedia.org

 www.w3resource.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy