Professional Documents
Culture Documents
• Can create,
modify,delete,view
and reroute flights Agent
Derived class
Passenger
Derived class
Payment
CLASS STRUCTURE
Class Agent Class Payment:public
passenger
Variables Variables
• Agentno-agent no
• Details i.e name,mob,email
• Card variables such as
cvv,cardno,netbank,password
Viewag()
Class Pq
• View agent details
Variables
Entag()
• Class created for purpose of pnr
• Enter agent details
save and usage in file pnr.dat
• Int pn is the only variable used
Variables
• Fllno-flight no
• Fllcode –flight number and date concatenated
• Date-date of departure of flight
• Oc-origin code, dc-destination code
• Base_fare-base fare for the flight
Viewflt
Enterflight
Viewbase
Enterpassenger
Enterinit
Value_null
View_all
Modify_flight- _flights-
modify a view all
flight flights
Agentmodify()
View_via_fltno- Flightdel-
view flights via remove
flight no flights
View_all_
View_via_da
cancelled-
te- view
View_all_flig view all
flights via
hts_fllcode- cancelled
date
view flights flights
via specific
flight code
Change_arrival
-change
destination
Change_basefa
Change_time_i
re-change the
nitial-chanmge
base fare of
dep time
flight
Modify_flight()
Change_origin- Change_time_
change the final-change
origin arrival time
AGENT PASSENGER
Cancel-to Book()-
cancel a helps
Deleteag() ticket passenger
-deletes to book a
View_agent an agent flight
_particular( Viewticke
)-view a t-view a
particualr ticket/pnr
agent Int
Main()
View_specific_s
et_flight-helps
passenger to
agent_modify()- view all flights
calls this according to
function which desired origin
has many sub destination and
function calling. Insertag()- View_all_ date
This helps agent insert an agent()-
to modify a agent view all
flight agents