// Mr. Minich // void function demo program #include #include using namespace std; // ************** function declaration statements ****************** void displayMenu(); int main() { // ********** variable declaration statements ****************** int menuChoice = 0; // customer's menu choice double totalCost = 0.0; // total cost of customer's purchases while (menuChoice != 4) { displayMenu(); // ***************** user input *************************** cout << "Enter a menu choice: "; cin >> menuChoice; if (menuChoice == 1) { // do calculations here } else if (menuChoice == 2) { // do calculations here } else if (menuChoice == 3) { // do calculations here } } cout << "Your total cost is $" << totalCost << endl; system("pause"); return 0; }// end of main // *************************** functions ************************ void displayMenu() { cout << "1 Books" << endl; cout << "2 Movies" << endl; cout << "3 Peanuts" << endl; cout << "4 Checkout" << endl; }// end of displayMenu