Question: #include movie _ simulation _ program _ 3 . h / * * * * * * * * * * * * *

#include "movie_simulation_program_3.h"
/*********************************************************************
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 processTheaterInformation(fstream& fileInput, Theater& myTheater)
Purpose:
Function to read theater text file and process the information
into a theater structure
Parameters:
I/O fstream fileInput File stream to read theater info
I/O Theater myTheater Theater structure to populate
Return Value:
-
Notes:
This function does not validate the file structure it is provided
*********************************************************************/
void processTheaterInformation(fstream& fileInput, Theater& myTheater)
{
cout << "processTheaterInformation not implemented" << endl;
}
/*********************************************************************
void displayMenu(string 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 1
The last menu option should always be displayed as -1
*********************************************************************/
void displayMenu(string szMenuName, string szChoicesArr[], int iChoices)
{
cout << "displayMenu not implemented" << endl;
}
/*********************************************************************
void displayTheaterInfo(const Theater myTheater)
Purpose:
Function to display basic theater information
Parameters:
I Theater myTheater Populated Theater info
Return Value:
-
Notes:
-
*********************************************************************/
void displayTheaterInfo(const Theater myTheater)
{
cout << "displayTheaterInfo not implemented" << endl;
}
/*********************************************************************
void displayNowShowing(const 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 0
*********************************************************************/
void displayNowShowing(const Theater myTheater)
{
cout << "displayNowShowing not implemented" << endl;
}
/*********************************************************************
CustomerTicket buyTickets(Theater& myTheater)
Purpose:
Function to handle customer buying tickets
Parameters:
I/O Theater myTheater Populated Theater info
Return Value:
Populated CustomerTicket if transaction was successful
Empty Customer Ticker if transaction was unsuccessful
Notes:
-
*********************************************************************/
CustomerTicket buyTickets(Theater& myTheater)
{
CustomerTicket tempCust;
cout << "buyTickets not implemented" << endl;
return tempCust;
}
// Extra Credit Function
void refundTickets(Theater& myTheater)
{
cout << "Extra Credit: refundTickets not implemented" << endl;
}
/*********************************************************************
double calculateTotalSales(const 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 calculateTotalSales(const Theater& myTheater)
{
cout << "calculateTotalSales not implemented" << endl;
return 0.0;
}
/*********************************************************************
void storeData(const Theater myTheater, fstream& fileMemberIO, string szMode);
Purpose:
Function to load data from the theater structure to a file
Parameters:
I/O Theater& myTheater Populated Theater info
I/O fstream fileDataIO File stream used to read file
I string szMode What data to delete
Return Value:
-
Notes:
-
*********************************************************************/
void storeData(const Theater myTheater, fstream& fileDataIO, string szMode)
{
cout << "storeData not implemented" << endl;
}
/*********************************************************************
void loadData(Theater& myTheater, fstream& fileDataIO, string szMode)
solutionRoute 66 Theater
3
*Theater Rooms*
Alto 30 Hatchback_to_the_Future
Nexon 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!