You are on page 1of 10

MODE OF ENTRANCE

• Can create,
modify,delete,view
and reroute flights Agent

• Can book cancel and


view his/her own
ticket Passenger
CLASS STRUCTURE

Base class Flight

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

• Class created for purpose of


agentno save and usage in file Class A
agentno.dat
• Int a is the only variable used
Class Create_Flight
Variables-Important

• 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

• View all flight details

Enterflight

• Enter new flight details on creation

Viewbase

• Using another function calbase_fare() calculate the current fare accoring to


seat availability and increase or decrease the price accoringly
Class Passenger : public create_flight
Variables

• Pnrr- pnr for passenger


• Status-if ticket is cancelled /delayed/confirmed etc.

Enterpassenger

• Enter all the details of passenger during flight booking

Enterinit

• Initializes all passenger fields to 0 and spaces accoring to datatype during


flight creation. Plays the role of a constructor but not not so due to
progrraming requirements

Value_null

• Plays similar role to enterinit() but has other operational requirements/uses


FUNCTION STRUCTURE
Flightcr
-create
View_ticket- flights Overbook-
view specific check how
pnr of many seats
passenger remaining

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

You might also like