0% found this document useful (0 votes)
25 views32 pages

Ip Sample

Uploaded by

yash d
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)
25 views32 pages

Ip Sample

Uploaded by

yash d
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/ 32

NATIONAL HILL VIEW PUBLIC

SCHOOL
RR NAGAR , BENGALURU

PROJECT IN INFORMATICS PRACTICES (065)


ACADEMIC YEAR 2021-2022

NAME :
CLASS : XII ROLL NO. :
REG. NO. :
ACADEMIC YEAR : 2021 – 2022

FLIGHT MANAGEMENT SYSTEM

1
(CERTIFICATE)

2
(ACKNOWLEDGEMENT)

3
CONTENT PAGE
INTRODUCTION 5-6

HARDWARE REQUIREMENTS 7

SOFTWARE REQUIREMENT 7

TABLES 8-10

SOURCE CODE 11-23

SAMPLE OUTPUT 24-31

BIBLIOGRAPHY 32

4
INTRODUCTION
PYTHON is an interpreted , high-level and general-purpose
programming language. Python’s design philosophy
emphasizes code readability with its notable use of significant
whitespace.Its language constructs and object oriented approach
aim to help programmers write clear, logical code for small and
large-scale projects. Python is dynamically-typed and garbage-
collected. It supports multiple programming Paradigms
including structured (particularly, procedural), object
oriented and functional programming. Python is often described
as a “batteries included” language due to its
comprehensive standard library.

A comma-separated values (CSV) file is a delimited text


file that uses a comma to separate values. Each line of the file is
a data record. Each record consists of one or more fields,
separated by commas. The use of the comma as a field
separator is the source of the name for this file format. A CSV file
typically stores tabular data (numbers and text) in plain text, in
which case each line will have the same number of fields . The
CSV file format is not fully standardized. The basic idea of
separating fields with a comma is clear, but the situation gets
complicated when field data also contain commas or
embedded line breaks.

5
The Flight Management System is a solution that allows users
to quickly book flights and manage booking information, updates,
and cancellations easily. It consolidates data from different airline
carriers and thus provides all the necessary details and rates in
real-time. In addition, administrators of flight data can also quickly
view, create, and update any information about flights, bookings,
routes, and schedules. In this project , there are various type of
modules available to manage ticket booking,flight
enquiry,passenger. We can also generate reports for flight
enquiry,passenger, booking enquiry,airlines booking. Here the
Passenger module manage all the operations of passenger, flight
enquiry module can manage airline enquiry,passenger
reservation module is normally developed for managing
passenger reservation,booking enquiry module manages booking
enquiry operations.

This programs objective is to check the Flight status,Update/Add


a flight, Cancel a flight, Ground staff details, Cabin crew details
(Pilots,FA), Passenger details, Aircraft Details (visualisation), to
compare the no. of flights per airline before COVID-19 pandemic
vs. during COVID-19 pandemic (visualisation), Passenger traffic
in each terminal (visualisation) and employee details
(visualisation).

6
HARDWARE REQUIREMENTS
A laptop/computer with O.S windows 10
CPU- 64 Bit
x86 64-bit CPU (Intel / AMD architecture)
4 GB RAM.
5 GB free disk space.

SOFTWARE REQUIREMENTS
MYSQL server
Jupyter Notebook
Pandas library
Matplotlib library
CSV

7
TABLES

8
9
10
SOURCE CODE
import pandas aspd
importnumpyasnp
importmatplotlib.pyplotasplt
In [103]:
flights=pd.read_csv("C:\\Users\downloads\flightschedule.csv",i
ndex_col='Flight_Code')
status=[]
for i in range (0,206):
status.append(np.random.choice(['Scheduled', 'On
Time','Boarding','Delayed','Canceled','Arrived']))
flights['Status']=status
defflightstats():
u=input('Enter flight code:')
if u in list(flights.index):
print(flights.loc[u])
else:
print('Flight details N/A')
defflighttype():
v=input('Enter flight
type(DomesticPassenger/InternationalPassenger):')
if v=='DomesticPassenger':
print('DOMESTIC
FLIGHTS\n',flights.loc[flights['Flight_Type']==v])
elif v=='InternationalPassenger':
print('INTERNATIONAL
FLIGHTS\n',flights.loc[flights['Flight_Type']==v])
else:
print('Please enter a valid flight type!')
defflightdes():
w=input('Enter destination code:')
ifw in list(flights['Des_Airport_Code']):
print(flights.loc[flights['Des_Airport_Code']==w])
else:
print('N/A')
def airline():
v=input('Enter airline code:')
if v in list(flights['Airline_Code']):
print(flights.loc[flights['Airline_Code']==v])
else:
11
print('N/A')
deffstatus():
v=input('Enter flight status(Scheduled/On
Time/Boarding/Delayed/Canceled/Arrived):')
if v in list(flights['Status']):
print(flights.loc[flights['Status']==v])
else:
print('N/A')
In [104]:
def update():
v=input('Enter flight code:')
if v in list(flights.index):
ch='Y'
whilech=='Y':
print('\nUPDATION OPTIONS\n','1.DEPARTURE TIME\n','2.ARRIVAL
TERMINAL\n','3.DEPARTURE TERMINAL\n','4.FLIGHT STATUS\n')
u=int(input('Select flight detail to be
updated(1/2/3/4):'))
if u==1:
d=input('Enter new departure time(HH:MM:SS):')
flights.at[v,'Sch_Dep_Time']=d
elif u==2:
at=int(input('Enter arrival terminal:'))
flights.at[v,'Sch_Arr_Terminal']=at
elif u==3:
dt=int(input('Enter departure terminal:'))
flights.at[v,'Sch_Dep_Terminal']=dt
elif u==4:
st=input('Enter status:')
flights.at[v,'Status']=st
else:
print('Invalid Choice!')
ch=input('Do you wish to update other details?(Y/N)')
else:
print('N/A')
In [105]:
def add():
c=input('Enter Flight Code(IATAcodeNumber):')
d=input('Enter Duration(IN HOURS):')
e=input('Enter Departure Time(HH:MM:SS):')
f=int(input('Enter Arrival Terminal:'))
g=int(input('Enter Departure Terminal:'))
h=input('Enter Flight
Type(DomesticPassenger/InternationalPassenger):')
i=input('Enter Departure Airport Code:')

12
j=input('Enter Destination Airport Code:')
k=int(input('Enter Airport Code(number):'))
l=input('Enter Aircraft Type:')
m=input('Enter Airline Code:')
n=input('Enter Status:')
flights.loc[c]=[d,e,f,g,h,i,j,k,l,m,n]
print(flights)
In [106]:
defcancelflight():
v=input('Enter flight code which is to be canceled:')
if v in list(flights.index):
flights.at[v,'Status']='Canceled'
print(flights.loc[v,:])
else:
print('Flight N/A')
In [107]:
defflightdetails():
ch='Y'
whilech=='Y':
print('\nSELECT AN OPTION','\n1.FLIGHT STATUS','\n2.UPDATE A
FLIGHT','\n3.ADD A FLIGHT','\n4.CANCEL A FLIGHT')
c=int(input('\nEnter your choice:\n'))
if c==1:
CH='y'
while CH=='y':
print('DISPLAY DETAILS:\n','1.ALL FLIGHT DETAILS\n','2.BASED
ON FLIGHT TYPE\n',
'3.BASED ON DESTINATION CODE\n',
'4.BASED ON AIRLINE CODE\n','5.BASED ON
FLIGHT STATUS\n')
a=int(input('\nEnter your choice:\n'))
if a==1:
flightstats()
elif a==2:
flighttype()
elif a==3:
flightdes()
elif a==4:
airline()
elif a==5:
fstatus()
else:
print('N/A')
CH=input('\nDo you wish to
continue?(y/n)(Flight Status):')

13
elif c==2:
update()
elif c==3:
add()
elif c==4:
cancelflight()
else:
print('N/A')
ch=input('\nDo you wish to continue?(Y/N)(FLIGHT DETAILS):')
In [108]:
defpassengerdetails():
pax=pd.read_csv("C:\\Users\downloads\passenger.csv",index_col=
'Passenger_ID')
CH='Y'
while CH=='Y':
print('\nSELECT AN OPTION','\n1.DISPLAY DETAILS','\n2.UPDATE
PASSPORT NO.','\n3.ADD DETAILS','\n4.DELETE DETAILS')
x=int(input('\nEnter your choice:'))
if x==1:
c='Y'
while c=='Y':
print('\nDISPLAY DETAILS BASED ON:','\n1.PASSPORT
NO.','\n2.NATIONALITY','\n3.PASSENGER ID')
ch=int(input('\nEnter your choice:'))
ifch==1:
passportno=input('Enter PassportNo:')
ifpassportnoin list(pax['PassportNo']):
print(pax[pax['PassportNo']==passportno])
else:
print('N/A')
elifch==2:
n=input('Enter Nationality:')
if n in list(pax['Nationality']):
print(pax[pax['Nationality']==n])
else:
print('N/A')
elifch==3:
p_id=int(input('Enter Passenger ID:'))
ifp_idin list(pax.index):
print(pax[pax.index==p_id])
else:
print('N/A')
else:
print('Invalid')
c=input('Do you wish to continue?(Y/N)(details
based on passportno/nationality/passengerid):')
14
elif x==2:
p=int(input('Enter passenger id:'))
pn=input('Enter new passport number:')
ifp in list(pax.index):
pax.at[p,'PassportNo']=pn
else:
print('N/A')
elif x==3:
p=int(input('Enter Passenger ID(>400):'))
pname=input('Enter Passenger Name:')
n=input('Enter Nationality:')
pid=input('Enter Passport No.:')
pax.loc[p]=[pname,n,pid]
print(pax)
elif x==4:
passenger=pax
PID=int(input('Enter Passenger ID whose details is
to be deleted:'))
if PID in list(passenger.index):
passenger=passenger.drop([PID])
print(passenger)
else:
print('Not found')
pax=passenger
else:
print('Invalid!')
CH=input('Do you wish to continue?(Y/N)(PASSENGER
DETAILS):')

In [109]:
defPRices():
prices=pd.read_csv("C:\\Users\downloads\prices.csv",index_col=
'S_No')
fc,l=[],list(prices['Flight_Code'])
for x in range(0,len(l)):
fc.append(l[x][0:2])
prices['Airline_Code']=fc
Y='Yes'
while Y=='Yes':
print('\nPRICES','\n1.PRICE OF ANY CLASS BASED ON FLIGHT
CODE',
'\n2.PRICE OF ALL CLASSES & FLIGHTS BASED ON
AIRLINE CODE',
'\n3.UPDATE COSTS')
X=int(input('Enter your choice:'))
if X==1:
15
FC=input('Enter Flight Code:')
Class=input('Enter
Class(Economy/Business/First):')
if FC in list(prices['Flight_Code']):
print('Price of',Class,'Class of flight',FC,'is',
prices.iat[prices[prices['Flight_Code']==FC][prices['Class']==
Class].index[0],1])
else: print('N/A')
elif X==2:
AC=input('Enter Airline Code:')
if AC in list(prices['Airline_Code']):
print(prices[prices['Airline_Code']==AC])
else:
print('N/A')
elif X==3:
Cost=int(input('Enter Cost:'))
Class=input('Enter
Class(Business/First/Economy):')
FC=input('Enter Flight Code:')
prices['Cost'][prices['Flight_Code']==FC][prices['Class']==Cla
ss]=Cost
print('Updation Successful!')
else:
print('Invalid!')
Y=input('\nDo you wish to continue?(Yes/No)(PRICES):')

In [110]:
defvisualisation():
importmatplotlib.pyplotasplt
ch='Y'
whilech=='Y':
print('\nSELECT AN OPTION:','\nDATA
VISUALISATION','\n1.PASSENGER TRAFFIC IN EACH TERMINAL',
'\n2.AIR TRAFFIC BEFORE AND DURING THE COVID-19
PANDEMIC',
'\n3.NO. OF EMPLOYEES IN EACH
DEPARTMENT','\n4.AIRCRAFT DETAILS')
c=int(input('Enter your choice:'))
if c==1:
df=pd.read_csv('C:\\Users\downloads\los-angeles-international-
airport-passenger-traffic-by-terminal.csv')
x=np.arange(11)
importmatplotlib.pyplotasplt
plt.figure(figsize=(16,8))
plt.bar(df['Terminal'],df['Passenger_Count'],color='mediumseag
reen')
16
plt.xticks(x,['Imperial Terminal','Misc.
Terminal','T1','T2','T3','T4','T5','T6','T7','T8',
'Tom Bradley Intl. Terminal'])
plt.yticks(range(100000,1000000,100000))
plt.xlabel('Terminals')
plt.ylabel('No. of Passengers')
plt.title('Passenger Traffic in Each Terminal')
plt.show()
elif c==2:
numofflights=pd.read_csv("C:\\Users\downloads\covid19flights.c
sv")
numofflights.index=[2019,2020]
importmatplotlib.pyplotasplt
l=list(numofflights.columns)[::-1]
L1=list(numofflights.loc[2019,:])[::-1]
L2=list(numofflights.loc[2020,:])[::-1]
x=np.arange(12)
plt.figure(figsize=(17,9))
plt.barh(x,L1,height=.35,label='2019',color='lightblue')
plt.barh(x+0.35,L2,height=.35,label='2020',color='cadetblue')
plt.yticks(x,l)
plt.legend(loc=1)
plt.title('Total Flights(2019 vs 2020)')
plt.ylabel('Month')
plt.xlabel('No. of Flights(M)')
plt.show()
elif c==3:
empl=pd.read_csv("C:\\Users\downloads\employee.csv")

l=[len(empl[empl['department_name']=='COMMUNICATIONS']),len(em
pl[empl['department_name']=='COMMERCIAL DEPARTMENT']),
len(empl[empl['department_name']=='LEGAL
DEPARTMENT']),len(empl[empl['department_name']=='SECURITY
DEPARTMENT']),
len(empl[empl['department_name']=='GROUND HANDLING
DEPARTMENT']),len(empl[empl['department_name']=='QUALITY
ASSURANCE DEPARTMENT']),
len(empl[empl['department_name']=='INFRASTRUCTURE MAINTENANCE
AND DEVELOPMENT DEPARTMENT'])]

L=['COMMUNICATIONS','COMMERCIAL','LEGAL','SECURITY','GROUND
HANDLING','QUALITY ASSURANCE','INFRA MAINT. & DVLMT.']
plt.figure(figsize=(17,10))
plt.plot(L,l,'kd',linestyle='dashdot',markeredgecolor='cyan')
plt.title('NO. OF EMPLOYEES IN EACH DEPARTMENT')
plt.xlabel('Department')

17
plt.ylabel('No. of Employees')
plt.show()
elif c==4:
aircraft=pd.read_csv("E:\\ananya\\aircraft.csv")
plt.figure(figsize=(17,9))
plt.plot(aircraft['Aircraft_Type'],aircraft['Capacity'],'kd',m
arkeredgecolor='red',linestyle='solid',label='Capacity')
plt.plot(aircraft['Aircraft_Type'],aircraft['LifeTime'],'rD',m
arkeredgecolor='k',linestyle='dashed',label='Lifetime')
plt.title('AIRCRAFT DETAILS')
plt.xlabel('Aircraft Type')
plt.ylabel('Number')
plt.legend(loc=1)
plt.show()
else:
print('Invalid!')
ch=input('Do you wish to continue?(Y/N)(VISUALISATION)')
In [111]:
defadd_empl():
employee=pd.read_csv("C:\\Users\downloads\employee.csv",index_
col=0)
e=int(input("Enter Employee ID:"))
en=input('Enter Employee Name:')
s=int(input('Enter Employee Salary:'))
po=input('Enter Employee Position:')
dn=input('Enter Employee Department name:')
ac=input('Enter Airport Code:')
employee.loc[e]=[en,s,po,dn,ac]
print(employee)
defupdate_empl():
employee=pd.read_csv("C:\\Users\downloads\employee.csv",index_
col=0)
u=int(input("ENTER EMPLOYEE ID:"))
if u in list(employee.index):
ch='Y'
whilech=='Y':
print('\n','1.EMPLOYEE
NAME\n','2.SALARY\n','3.POSITION\n','4.DEPARTMENT
NAME\n','5.AIRPORT CODE\n')
v=int(input('SELECT EMPLOYEE DETAIL TO BE UPDATED
(1/2/3/4/5):'))
if v==1:
en=input('ENTER NEW EMPLOYEE NAME:')
employee.loc[u,'Emp_Name']=en
elif v==2:
s=int(input('ENTER NEW SALARY:'))
18
employee.loc[u,'Salary']=s
elif v==3:
po=input('ENTER NEW POSITION:')
employee.loc[u,'Position']=po
elif v==4:
dn=input('ENTER NEW DEPARTMENT NAME:')
employee.loc[u,'Department_Name']=dn
elif v==5:
ac=input('ENTER NEW AIRPORT CODE(iata code):')
employee.loc[u,'Airport_Code']=ac
else:
print('Invalid!')
ch=input('Do you wish to update other employee
details?(Y/N):')
else:
print('N/A')
defcancel_empl():
employee=pd.read_csv("C:\\Users\downloads\employee.csv",index_
col=0)
u=int(input('Enter employee ID to be deleted(integer):'))
if u in list(employee.index()):
employee.drop(u)
else:
print('Employee ID N/A')
In [112]:
defemployeedetails():
ch='Yes'
whilech=='Yes':
print('\nSELECT AN OPTION:','\n1.DISPLAY EMPLOYEE
DETAILS','\n2.ADD EMPLOYEE DETAILS','\n3.UPDATE EMPLOYEE
DETAILS',
'\n4.DELETE EMPLOYEE DETAILS')
C=int(input('Enter your choice:'))
if C==1:
empln=int(input('Enter Employee ID:'))
ifemplnin list(employee.index):
print(employee.loc[empln])
else:
print('Employee ID N/A')
elif C==2:
add_empl()
elif C==3:
update_empl()
elif C==4:
cancel_empl()
else:
19
print('Invalid!')
ch=input('Do you want to continue?(Employee details)(Yes/No)')
In [146]:
defpilotdetails():
pilots=pd.read_csv("C:\\Users\downloads\pilots.csv",index_col=
1)
p=int(input('Enter Pilot ID:'))
ifp in list(pilots.index):
print(pilots.loc[pilots.index==p])
else:
print('Pilot ID N/A')
defadd_pilot_details():
pilots=pd.read_csv("C:\\Users\downloads\pilots.csv",index_col=
1)
p=int(input('Enter Pilot ID:'))
pn=input('Enter Pilot name:')
l=input('Enter Locality:')
a=input('Enter Airline Code:')
pilots.loc[p]=[pn,l,a]
print(pilots)

def Pilots():
ch='Yes'
whilech=='Yes':
print('\nSELECT AN OPTION:','\n1.DISPLAY PILOT
DETAILS','\n2.ADD PILOT DETAILS')
C=int(input('Enter your choice:'))
if C==1:
pilotdetails()
elif C==2:
add_pilot_details()
else:
print('Invalid!')
ch=input('Do you want to continue?(Pilot details)(Yes/No)')
In [147]:
defflightsflew():flights_flew=pd.read_csv("C:\\Users\downloads
\flightflew.csv")
p=int(input('Enter Pilot ID(integer):'))
ifp in list(flights_flew.index):
print(flights_flew.loc[p])
else:
print('Details not available at the moment.')

defadd_flight_details():flights_flew=pd.read_csv("C:\\Users\do
wnloads\flightflew.csv")

20
p=int(input('Enter Pilot ID:'))
dts=input('Enter Departure TimeStamp(MM/DD/YYYY HH:MM):')
f=input('Enter Flight Code:')
flights_flew.loc[len(flights_flew.index)]=[p,dts,f]
print(flights_flew)

defpilots_flights():flights_flew=pd.read_csv("C:\\Users\downlo
ads\flightflew.csv")
u=int(input("ENTER Pilot ID:"))
if u in list(flights_flew['Pilot_ID']):
print(flights_flew[flights_flew['Pilot_ID']==u])
else:
print('Details not available at the moment.')

def update():
pilots=pd.read_csv("C:\\Users\downloads\pilots.csv",index_col=
1)
flights_flew=pd.read_csv("C:\\Users\downloads\flightflew.csv")
u=int(input("ENTER PILOT ID:"))
if u in list(flights_flew.index) or u in list(pilots.index):
ch='Y'
whilech=='Y':
print('\n','1.AIRLINE CODE\n','2.LOCALITY\n','3.FLIGHT
CODE\n','4.DEPARTURE TIME STAMP\n')
v=int(input('SELECT PILOT DETAIL TO BE UPDATED
(1/2/3/4):'))
if v==1:
a=input('ENTER NEW AIRLINE CODE:')
pilots.loc[u,'Airline_Code']=a
elif v==2:
l=input('ENTER NEW LOCALITY:')
pilots.loc[u,'Locality']=l
elif v==3:
f=input('ENTER NEW FLIGHT CODE:')
flights_flew.loc[u,'Flight_Code']=f
elif v==4:
dts=input('ENTER NEW DEPARTURE TIME STAMP(MM/DD/YYYY HH:MM):')
flights_flew.loc[u,'Dep_TimeStamp']=dts
else:
print('Invalid!')
ch=input('Do you wish to update other pilot/flight
details?(Y/N):')
else:
print('N/A')
In [148]:
defpilotsflightdetails():
21
ch='Y'
whilech=='Y':
print('\nSELECT AN OPTION:','\n1.FLIGHT DETAILS','\n2.SCHEDULE
STATUS','\n3.UPDATE SCHEDULE DETAILS',
"\n4.PILOTS' FLIGHTS")
u=int(input('\nENTER YOUR CHOICE:'))
if u==1:
flightsflew()
elif u==2:
choice='y'
while choice=='y':
print('\n','1.ASSIGN A PILOT\n','2.ASSIGN A FLIGHT\n')
a=int(input('\nENTER YOUR CHOICE(1/2):\n'))
if a==1:
add_pilot_details()
elif a==2:
add_flight_details()
else:
print('N/A')
choice=input('\nDO YOU WISH TO CONTINUE?(SCHEDULE
STATUS)(y/n):')
elif u==3:
update()
elif u==4:
pilots_flights()
else:
print('N\A')
ch=input("\nDO YOU WISH TO CONTINUE?(pilots' flight
details)(Y/N):")
In [151]:
Z='*'
while Z=='*':
print('___________','\nFLIGHT MANAGEMENT SYSTEM','\n1.FLIGHT
DETAILS','\n2.PASSENGER DETAILS','\n3.VISUALISATION',
'\n4.PRICES','\n5.EMPLOYEE DETAILS','\n6.PILOT
DETAILS',"\n7.PILOTS' FLIGHT DETAILS")
B=int(input('Enter your choice(1/2/3/4/5/6/7):'))
if B==1:
flightdetails()
elif B==2:
passengerdetails()
elif B==3:
visualisation()
elif B==4:
PRices()
elif B==5:
22
employeedetails()
elif B==6:
Pilots()
elif B==7:
pilotsflightdetails()
else:
print('PLEASE TRY AGAIN!')
Z=input('Type * to continue else press enter key to
exit\n')

23
SAMPLE OUTPUT
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):1

SELECT AN OPTION
1.FLIGHT STATUS
2.UPDATE A FLIGHT
3.ADD A FLIGHT
4.CANCEL A FLIGHT

Enter your choice:


3
Enter Flight Code(IATAcodeNumber):EK041
Enter Duration(IN HOURS):4
Enter Departure Time(HH:MM:SS):3:30:00
Enter Arrival Terminal:2
Enter Departure Terminal:3
Enter Flight Type(DomesticPassenger/InternationalPassenger):InternationalPassenger
Enter Departure Airport Code:DXB
Enter Destination Airport Code:BLR
Enter Airport Code(number):119
Enter Aircraft Type:Boeing 777
Enter Airline Code:EK
Enter Status:Scheduled
Duration_in_hoursSch_Dep_TimeSch_Arr_Terminal \
Flight_Code
AI001 2 18:15:00 2
AI002 5 12:15:00 1
AI003 8 4:30:00 1
AI004 5 18:30:00 3
AI005 4 5:30:00 1
... ... ... ...
VS083 7 6:45:00 1
VS084 2 7:30:00 1
VS085 7 21:15:00 3
VS086 7 1:00:00 2
EK041 4 3:30:00 2

Sch_Dep_TerminalFlight_TypeSrc_Airport_Code \
Flight_Code
AI001 1 DomesticPassenger GAU
AI002 2 DomesticPassenger HYD
AI003 2 DomesticPassenger HYD
AI004 1 DomesticPassenger GOI
AI005 2 DomesticPassenger DEL
... ... ... ...
VS083 2 InternationalPassenger GAU

24
VS084 2 InternationalPassenger AKL
VS085 1 InternationalPassenger DXB
VS086 1 InternationalPassenger AKL
EK041 3 InternationalPassenger DXB

Des_Airport_CodeDay_CodeAircraft_TypeAirline_Code Status
Flight_Code
AI001 HYD 25 Boeing767 AI On Time
AI002 TEI 106 Boeing787 AI On Time
AI003 BOM 83 AirbusA330 AI Arrived
AI004 BLR 33 Boeing767 AI Scheduled
AI005 DIB 86 AirbusA330 AI Boarding
... ... ... ... ... ...
VS083 FRA 82 AirbusA330 VS Arrived
VS084 GOI 93 Boeing787 VS Boarding
VS085 BLR 119 Boeing767 VS Arrived
VS086 BOM 60 Comac919 VS Arrived
EK041 BLR 119 Boeing 777 EK Scheduled

[207 rows x 11 columns]

Do you wish to continue?(Y/N)(FLIGHT DETAILS):N


Type * to continue else press enter key to exit
*
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):2

SELECT AN OPTION
1.DISPLAY DETAILS
2.UPDATE PASSPORT NO.
3.ADD DETAILS
4.DELETE DETAILS

Enter your choice:1

DISPLAY DETAILS BASED ON:


1.PASSPORT NO.
2.NATIONALITY
3.PASSENGER ID

Enter your choice:2


Enter Nationality:Mexican
N/A
Do you wish to continue?(Y/N)(details based on passportno/nationality/passengerid):Y

DISPLAY DETAILS BASED ON:


1.PASSPORT NO.
2.NATIONALITY
3.PASSENGER ID

Enter your choice:2


Enter Nationality:Australian
Passenger_NameNationality PassportNo
Passenger_ID
206 KaylahFeeney Australian 16043
208 Hyman Hessel Australian 36105
209 Sasha Klocko Australian 142286
25
216 Amir OKon Australian 5963
221 Justus Bahringer Australian 58051
227 RainaThompson Australian 28869
235 MargarettaKirlin Australian 129064
239 JohnathonWalker Australian 53543
243 Chauncey Gleichner Australian 12068
244 EinoHoeger Australian 148306
247 Trent Fisher Australian 23857
251 LaurettaKoepp Australian 47326
252 AylaCrooks Australian 147067
257 Tyrell Hane Australian 8661
262 Andres Deckow Australian 17196
272 Jennifer Ernser Australian 53474
274 KodyMcClure Australian 136532
276 Noel Reilly Australian 56853
280 Ronaldo Langworth Australian 47803
282 Bret Fisher Australian 120409
283 ElyssaLehner Australian 87968
284 EribertoLeffler Australian 61625
294 UrielWisozk Australian 32130
296 Asia Welch Australian 106037
302 Trenton Leannon Australian 12965
304 AylinChristiansen Australian 37932
309 Justus Quigley Australian 7833
315 ShainaBednar Australian 150060
319 MonserratThompson Australian 45129
322 EdaPfeffer Australian 36320
324 Fredrick Lubowitz Australian 32739
339 Kristin Gerhold Australian 31659
340 Watson Cruickshank Australian 105879
343 Rosalinda Yost Australian 69988
355 Viola Flatley Australian 68803
362 Billy Rempel Australian 88106
365 Rosalinda Romaguera Australian 7491
371 Cleveland Lubowitz Australian 121081
374 JaydeOrn Australian 122697
375 AnsleyJohnson Australian 56817
387 Vivien Will Australian 7420
396 LaviniaBoyle Australian 35601
Do you wish to continue?(Y/N)(details based on passportno/nationality/passengerid):N
Do you wish to continue?(Y/N)(PASSENGER DETAILS):N
Type * to continue else press enter key to exit
*
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):3

SELECT AN OPTION:
DATA VISUALISATION
1.PASSENGER TRAFFIC IN EACH TERMINAL
2.AIR TRAFFIC BEFORE AND DURING THE COVID-19 PANDEMIC
3.NO. OF EMPLOYEES IN EACH DEPARTMENT
4.AIRCRAFT DETAILS
Enter your choice:2

26
Do you wish to continue?(Y/N)(VISUALISATION)N
Type * to continue else press enter key to exit
*
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):4

PRICES
1.PRICE OF ANY CLASS BASED ON FLIGHT CODE
2.PRICE OF ALL CLASSES & FLIGHTS BASED ON AIRLINE CODE
3.UPDATE COSTS
Enter your choice:1
Enter Flight Code:NZ001
Enter Class(Economy/Business/First):First

Do you wish to continue?(Yes/No)(PRICES):No


Type * to continue else press enter key to exit
*
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):5

SELECT AN OPTION:
1.DISPLAY EMPLOYEE DETAILS

27
2.ADD EMPLOYEE DETAILS
3.UPDATE EMPLOYEE DETAILS
4.DELETE EMPLOYEE DETAILS
Enter your choice:2
Enter Employee ID:38
Enter Employee Name:Ruth L
Enter Employee Salary:189400
Enter Employee Position:Auditor
Enter Employee Department name:GROUND HANDLING DEPARTMENT
Enter Airport Code:JFK
emp_name salary position \
emp_id
1 DeepeshDeol 348900 Media Planner
2 NupoorDeshmukh 189081 Manager
3 KalpitAggarwal 297365 Senior Manager
4 Baber Manda 248124 Deputy General Manager
5 MadhaviSaini 129159 General Manager
6 NayanAnne 198389 Senior Technician
7 DevendraNazareth 257870 Operator
8 Kasturba Nath 102124 Senior Engineer
9 BabitaDivan 137809 Assistant
10 PranayMannan 139991 HGA
11 LataPalla 242213 Officer
12 Mohan Comar 162165 Accountant
13 Vikrant Kabra 271374 Manager
14 DarpanChopra 190391 Sales manager
15 NitikaRattan 194529 Internal Auditor
16 GhalibSane 139679 Data Processing officer
17 MukulBiyani 295427 Legal Associate
18 HemendraPillay 156987 Legal Head
19 SharadDani 204880 Legal Advisor
20 Lakshmi Jain 174086 Legal Consultant
21 JayshreeYogi 204724 Sr. Manager
22 Zara Kapoor 142399 Legal Associate
23 Naval Maheshwari 114942 Legal Advisor
24 AbhinavChand 298838 Legal Executive
25 WafiqRampersaud 233402 Ground Staff
26 DevikaKalla 234292 Security Head
27 LalitDave 105385 Supervisor
28 BimlaKanda 271737 Security Officer
29 GiaanMangat 243270 Facility Manager
30 EkbalDin 170750 Technician
31 SatishwarTaneja 296240 Senior Technician
32 VineetaVirk 262237 Auditor
33 RimiBir 152451 Ground Technician
34 RiddhiDesai 174385 Ground Manager
35 MohanlalRaghavan 223837 Aviation Technician
36 NamitaGrewal 172203Hygeine Manager
37 DhirajNaruka 164537 Food Auditor
38 Ruth L 189400 Auditor

department_nameairport_code
emp_id
1 COMMUNICATIONS AMD
2 COMMUNICATIONS BDQ
3 COMMUNICATIONS DEL
4 COMMUNICATIONS AMD
5 COMMUNICATIONS GOI
6 COMMUNICATIONS DEL
7 COMMUNICATIONS IXR
8 COMMUNICATIONS GOI
9 COMMERCIAL DEPARTMENT PAT
10 COMMERCIAL DEPARTMENT IXR
11 COMMERCIAL DEPARTMENT DEL
12 COMMERCIAL DEPARTMENT PAT
28
13 COMMERCIAL DEPARTMENT AMD
14 COMMERCIAL DEPARTMENT CCU
15 COMMERCIAL DEPARTMENT DEL
16 COMMERCIAL DEPARTMENT SXR
17 LEGAL DEPARTMENT CCU
18 LEGAL DEPARTMENT IXS
19 LEGAL DEPARTMENT AMD
20 LEGAL DEPARTMENT BLR
21 LEGAL DEPARTMENT GAU
22 LEGAL DEPARTMENT BOM
23 LEGAL DEPARTMENT MAA
24 LEGAL DEPARTMENT GAU
25 SECURITY DEPARTMENT BOM
26 SECURITY DEPARTMENT MAA
27 SECURITY DEPARTMENT TEI
28 SECURITY DEPARTMENT COK
29 SECURITY DEPARTMENT DIB
30 INFRASTRUCTURE MAINTENANCE AND DEVELOPMENT DEP... IMF
31 INFRASTRUCTURE MAINTENANCE AND DEVELOPMENT DEP... IXC
32 INFRASTRUCTURE MAINTENANCE AND DEVELOPMENT DEP... IDR
33 GROUND HANDLING DEPARTMENT JFK
34 GROUND HANDLING DEPARTMENT HYD
35 GROUND HANDLING DEPARTMENT IAD
36 QUALITY ASSURANCE DEPARTMENT IAD
37 QUALITY ASSURANCE DEPARTMENT AKL
38 GROUND HANDLING DEPARTMENT JFK
Do you want to continue?(Employee details)(Yes/No)No
Type * to continue else press enter key to exit
*
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):6

SELECT AN OPTION:
1.DISPLAY PILOT DETAILS
2.ADD PILOT DETAILS
Enter your choice:1
Enter Pilot ID:11
Pilot_Name Locality Airline_Code
Pilot_ID
11 ArjunHayre Indore SQ
Do you want to continue?(Pilot details)(Yes/No)No
Type * to continue else press enter key to exit
*
___________
FLIGHT MANAGEMENT SYSTEM
1.FLIGHT DETAILS
2.PASSENGER DETAILS
3.VISUALISATION
4.PRICES
5.EMPLOYEE DETAILS
6.PILOT DETAILS
7.PILOTS' FLIGHT DETAILS
Enter your choice(1/2/3/4/5/6/7):7

SELECT AN OPTION:
1.FLIGHT DETAILS
2.SCHEDULE STATUS
29
3.UPDATE SCHEDULE DETAILS
4.PILOTS' FLIGHTS

ENTER YOUR CHOICE:1


Enter Pilot ID(integer):3
Pilot_ID 46
Dep_TimeStamp 10/17/2019 4:30
Flight_Code 6.00E+85
Name: 3, dtype: object

DO YOU WISH TO CONTINUE?(pilots' flight details)(Y/N):Y

ENTER YOUR CHOICE:2

1.ASSIGN A PILOT
2.ASSIGN A FLIGHT

ENTER YOUR CHOICE(1/2):


2
Enter Pilot ID:97
Enter Departure TimeStamp(MM/DD/YYYY HH:MM):12/12/2019 04:30
Enter Flight Code:EY003
Pilot_IDDep_TimeStampFlight_Code
0 3 10/13/2019 13:45 6.00E+02
1 46 10/15/2019 13:45 6.00E+02
2 57 10/12/2019 4:30 6.00E+85
3 46 10/17/2019 4:30 6.00E+85
4 3 10/10/2019 4:30 6.00E+85
5 42 10/17/2019 12:30 AI007
6 53 10/16/2019 12:30 AI007
7 91 10/12/2019 12:30 AI007
8 16 10/1/2019 23:00 CX002
9 24 10/3/2019 23:00 CX002
10 16 10/15/2019 23:00 CX002
11 65 10/13/2019 9:00 CX007
12 83 10/10/2019 9:00 CX007
13 65 10/16/2019 9:00 CX007
14 93 10/11/2019 11:15 CX088
15 49 10/17/2019 11:15 CX088
16 93 10/14/2019 11:15 CX088
17 10 10/15/2019 16:00 EK007
18 54 10/12/2019 16:00 EK007
19 54 10/14/2019 23:30 EK086
20 70 10/17/2019 23:30 EK086
21 70 10/10/2019 23:30 EK086
22 12 10/14/2019 8:00 EY082
23 12 10/10/2019 8:00 EY082
24 21 10/12/2019 8:00 EY082
25 27 10/15/2019 9:45 EY088
26 89 10/16/2019 9:45 EY088
27 27 10/13/2019 9:45 EY088
28 97 12/12/2019 04:30 EY003

DO YOU WISH TO CONTINUE?(SCHEDULE STATUS)(y/n):n

DO YOU WISH TO CONTINUE?(pilots' flight details)(Y/N):Y

SELECT AN OPTION:
1.FLIGHT DETAILS
2.SCHEDULE STATUS
3.UPDATE SCHEDULE DETAILS

30
4.PILOTS' FLIGHTS
ENTER YOUR CHOICE:4

ENTER Pilot ID:65


Pilot_IDDep_TimeStampFlight_Code
11 65 10/13/2019 9:00 CX007
13 65 10/16/2019 9:00 CX007

DO YOU WISH TO CONTINUE?(pilots' flight details)(Y/N):N


Type * to continue else press enter key to exit

31
BIBLIOGRAPHY

 Google.com – for any online queries


 GeeksforGeeks python programming
 Github.com – for text file of the flight information
 Informatics Practices SumitaArora – textbook for
class XII

32

You might also like