Question: #include movie _ simulation _ program _ 3 . h / * * * * * * * * * * * * *
#include "moviesimulationprogramh
string promptForFilename
Purpose:
Helper function ask the user for a valid file path
Parameters:
Return Value:
Valid filepath string
Notes:
string promptForFilename
cout "promptForFilename not implemented" endl;
return ;
void processTheaterInformationfstream& fileInput, Theater& myTheater
Purpose:
Function to read theater text file and process the information
into a theater structure
Parameters:
IO fstream fileInput File stream to read theater info
IO Theater myTheater Theater structure to populate
Return Value:
Notes:
This function does not validate the file structure it is provided
void processTheaterInformationfstream& fileInput, Theater& myTheater
cout "processTheaterInformation not implemented" endl;
void displayMenustring szMenuName, string szChoicesArr int iChoices
Purpose:
Function to display the menu choices of a provided menu
Parameters:
I string szMenuName Title of the displayed menu
I string szChoicesArr Menu choices to be displayed
I int iChoices Number of menu choices
Return Value:
Notes:
Menu options are displayed starting at
The last menu option should always be displayed as
void displayMenustring szMenuName, string szChoicesArr int iChoices
cout "displayMenu not implemented" endl;
void displayTheaterInfoconst Theater myTheater
Purpose:
Function to display basic theater information
Parameters:
I Theater myTheater Populated Theater info
Return Value:
Notes:
void displayTheaterInfoconst Theater myTheater
cout "displayTheaterInfo not implemented" endl;
void displayNowShowingconst Theater myTheater
Purpose:
Function to display all movies currently showing
Parameters:
I Theater myTheater Populated Theater info
Return Value:
Notes:
Movies are displayed starting at
void displayNowShowingconst Theater myTheater
cout "displayNowShowing not implemented" endl;
CustomerTicket buyTicketsTheater& myTheater
Purpose:
Function to handle customer buying tickets
Parameters:
IO Theater myTheater Populated Theater info
Return Value:
Populated CustomerTicket if transaction was successful
Empty Customer Ticker if transaction was unsuccessful
Notes:
CustomerTicket buyTicketsTheater& myTheater
CustomerTicket tempCust;
cout "buyTickets not implemented" endl;
return tempCust;
Extra Credit Function
void refundTicketsTheater& myTheater
cout "Extra Credit: refundTickets not implemented" endl;
double calculateTotalSalesconst Theater& myTheater
Purpose:
Function to calculate the total sales of the theater
Parameters:
I Theater myTheater Populated Theater info
Return Value:
Total sales
Notes:
This function should only be called by the admin
double calculateTotalSalesconst Theater& myTheater
cout "calculateTotalSales not implemented" endl;
return ;
void storeDataconst Theater myTheater, fstream& fileMemberIO, string szMode;
Purpose:
Function to load data from the theater structure to a file
Parameters:
IO Theater& myTheater Populated Theater info
IO fstream fileDataIO File stream used to read file
I string szMode What data to delete
Return Value:
Notes:
void storeDataconst Theater myTheater, fstream& fileDataIO, string szMode
cout "storeData not implemented" endl;
void loadDataTheater& myTheater, fstream& fileDataIO, string szMode
solutionRoute Theater
Theater Rooms
Alto HatchbacktotheFuture
Nexon
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
