#include<iostream>
#include<cstdlib>
#include<string>
using namespace std;
class Menu
{
public:
Menu();
virtual void showMenu();
private:
};
Menu::Menu()
{
}
void Menu::showMenu()
{
cout<<"\nFood Selection:"<<endl<<endl;
cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*\n";
cout<<" Food Category "<<endl;
cout<<" __________________________________\n";
cout<<" 1. Appetizer *"<<endl;
cout<<" 2. Main Course *"<<endl;
cout<<" 3. Drinks *"<<endl;
cout<<" 4. Dessert *"<<endl;
cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*"<<endl;
cout<<"\nYour choice : ";
}
class Appetizer: public Menu
{
public:
Appetizer();
void showMenu();
private:
};
Appetizer::Appetizer()
{
}
void Appetizer::showMenu()
{
cout<<"\nSelect type of appertizer"<<endl<<endl;
cout<<" ############################\n";
cout<<" | Appetizer Category |"<<endl;
cout<<" |__________________________|\n";
cout<<" | 1 Salad |"<<endl;
cout<<" | 2 Soup |"<<endl;
cout<<" | 3 Bread |"<<endl;
cout<<" | 4 Snack |"<<endl;
cout<<" | 5 Sandwich |"<<endl;
cout<<" ############################"<<endl;
cout<<"\nYour choice : ";
}
class MainCourse: public Menu
{
public:
MainCourse();
void showMenu();
private:
};
MainCourse::MainCourse()
{
}
void MainCourse::showMenu()
{
cout<<"\nSelect type of meal:"<<endl<<endl;
cout<<" ############################\n";
cout<<" Meal Type "<<endl;
cout<<" ____________________________\n";
cout<<" | 1 Chicken |"<<endl;
cout<<" | 2 Meat |"<<endl;
cout<<" | 3 Seafood |"<<endl;
cout<<" | 4 Vegetables |"<<endl;
cout<<" | 5 Pasta |"<<endl;
cout<<"############################*"<<endl;
cout<<"\nYour choice : ";
}
class Beverages: public Menu
{
public:
Beverages();
void showMenu();
private:
};
Beverages::Beverages()
{
}
void Beverages::showMenu()
{
cout<<"\nSelect type of beverages:"<<endl<<endl;
cout<<" #############################\n";
cout<<" Beverages Category "<<endl;
cout<<" ___________________________\n";
cout<<" |1 Coffee |"<<endl;
cout<<" |2 Soft drinks |"<<endl;
cout<<" |3 Juice |"<<endl;
cout<<" |4 Liquor |"<<endl;
cout<<" |5 Beer |"<<endl;
cout<<" "<<"#######################"<<endl;
cout<<"\nYour choice : ";
}
class Dessert: public Menu
{
public:
Dessert();
void showMenu();
private:
};
Dessert::Dessert()
{
}
void Dessert::showMenu()
{
cout<<"\nSelect type of dessert:"<<endl<<endl;
cout<<"############################\n";
cout<<" Dessert Category "<<endl;
cout<<" ____________________________\n";
cout<<" | 1 Cake |"<<endl;
cout<<" | 2 Ice-cream |"<<endl;
cout<<" | 3 Pie |"<<endl;
cout<<" | 4 Cookies |"<<endl;
cout<<" | 5 Brownies |"<<endl;
cout<<" ############################"<<endl;
cout<<"\nYour choice : ";
}
class AppeOne: public Menu
{
public:
AppeOne();
void showMenu();
private:
};
AppeOne::AppeOne()
{
}
void AppeOne::showMenu()
{
cout<<"\nSelect the type of salad:"<<endl<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
cout<<" |BIll NAME PRICE | "<<endl;
cout<<" |--------------------------------------------------------|\n";
cout<<" | 1 Nutty Caesar Salad RM 14.60 |"<<endl;
cout<<" | 2 Primavera Lettuce Salad RM 15.50 |"<<endl;
cout<<" | 3 New Potato Salad with Tuna RM 11.70 |"<<endl;
cout<<" | 4 Thai Crab and Mango Salad RM 12.50 |"<<endl;
cout<<" | 5 Avocado Salad with Prickly Pear Sauce RM 13.90 |"<<endl;
cout<<" | 6 Exit and show price |"<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<<endl;
cout<<"\nYour choice : ";
}
class AppeTwo: public Menu
{
public:
AppeTwo();
void showMenu();
private:
};
AppeTwo::AppeTwo()
{
}
void AppeTwo::showMenu()
{
cout<<"\nSelect type of soup:"<<endl<<endl;
cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
cout<<" |BIll NAME PRICE |"<<endl;
cout<<" |--------------------------------------------------------------|\n";
cout<<" | 1 French Onion Soup RM 11.00 |"<<endl;
cout<<" | 2 Broccoli and Cheese Soup RM 11.50 |"<<endl;
cout<<" | 3 Golden Summer Squash & Corn Soup RM 10.90 |"<<endl;
cout<<" | 4 Mushroom Barley Soup RM 11.80 |"<<endl;
cout<<" | 5 Roasted Squash Soup With Maple-Glazed Bananas RM 11.90 |"<<endl;
cout<<" | 6 Exit and show price |"<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<<endl;
cout<<"\nYour choice : ";
}
class AppeThree: public Menu
{
public:
AppeThree();
void showMenu();
private:
};
AppeThree::AppeThree()
{
}
void AppeThree::showMenu()
{
cout<<"\nSelect type of bread:"<<endl<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
cout<<" |BIll NAME PRICE |"<<endl;
cout<<" |---------------------------------------------------|\n";
cout<<" | 1 Blueberry Cornbread RM 6.20 |"<<endl;
cout<<" | 2 Whole Baked Garlic with French Bread RM 6.50 |"<<endl;
cout<<" | 3 Tuscan Garlic Bread (Fettunta) RM 6.90 |"<<endl;
cout<<" | 4 Bacon Garlic Bread RM 6.50 |"<<endl;
cout<<" | 5 Almond-Bacon Cheese Crostini RM 7.20 |"<<endl;
cout<<" | 6 Exit and show price |"<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<<endl;
cout<<"\nYour choice : ";
}
class AppeFour: public Menu
{
public:
AppeFour();
void showMenu();
private:
};
AppeFour::AppeFour()
{
}
void AppeFour::showMenu()
{
cout<<"\nSelect type of snack:"<<endl<<endl;
cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
cout<<"|BIll NAME PRICE |"<<endl;
cout<<"|-------------------------------------------------------------------------------|\n";
cout<<"| 1 Deep Fried Potato Wedges RM 7.90 |"<<endl;
cout<<"| 2 Deep Fried Frence Fries RM 6.90 |"<<endl;
cout<<"| 3 Deep Fried Flower Rolls RM 4.90 |"<<endl;
cout<<"| 4 Deep Fried Calamari and Onion Rings combo with Wasabi Mayo RM 9.90 |"<<endl;
cout<<"| 5 Mashed Potato RM 5.90 |"<<endl;
cout<<"| 6 Exit and show price |"<<endl;
cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<<endl;
cout<<"\nYour choice : ";
}
class AppeFive: public Menu
{
public:
AppeFive();
void showMenu();
private:
};
AppeFive::AppeFive()
{
}
void AppeFive::showMenu()
{
cout<<"\nSelect type of sandwich:"<<endl<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
cout<<" |BIll NAME PRICE |"<<endl;
cout<<" |----------------------------------------------------------|\n";
cout<<" | 1 Chicken Cutlet Sandwiches RM 6.90 |"<<endl;
cout<<" | 2 Gravlax Club Sandwiches RM 6.70 |"<<endl;
cout<<" | 3 Mini Meatball Sandwiches RM 6.20 |"<<endl;
cout<<" | 4 Curried Chicken Tea Sandwiches RM 6.70 |"<<endl;
cout<<" | 5 Mini Ham Sandwiches RM 6.00 |"<<endl;
cout<<" | 6 Exit |"<<endl;
cout<<" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<<endl;
cout<<"\nYour choice : ";
}
class MealOne: public Menu
{
public:
MealOne();
void showMenu();
private:
};
MealOne::MealOne()
{
}
void MealOne::showMenu()
{
cout<<"\nSelect type of chicken:"<<endl<<endl;
cout<<" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------------\n";
cout<<" * 1 Chicken Wellington with Mushroom 'RM 19.00' *"<<endl;
cout<<" * 2 Chicken Golden Blue 'RM 17.50' *"<<endl;
cout<<" * 3 Chicken Supreme 'RM 18.00' *"<<endl;
cout<<" * 4 Chicken Corriander 'RM 20.50' *"<<endl;
cout<<" * 5 Chicken Terriyaki 'RM 23.50' *"<<endl;
cout<<" * 6 Exit *"<<endl;
cout<<">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"<<endl;
cout<<"\nYour choice : ";
}
class MealTwo: public Menu
{
public:
MealTwo();
void showMenu();
private:
};
MealTwo::MealTwo()
{
}
void MealTwo::showMenu()
{
cout<<"\nSelect type of meat:"<<endl<<endl;
cout<<" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" --------------------------------------------------------\n";
cout<<" * 1 Black Pepper Lamb chop 'RM 26.50' *"<<endl;
cout<<" * 2 Mixed grill 'RM 40.90' *"<<endl;
cout<<" * 3 Roast lamb 'RM 28.90' *"<<endl;
cout<<" * 4 Beef Stew 'RM 25.50' *"<<endl;
cout<<" * 5 Beef Lasagne 'RM 30.90' *"<<endl;
cout<<" * 6 Exit *"<<endl;
cout<<">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"<<endl;
cout<<"\nYour choice : ";
}
class MealThree: public Menu
{
public:
MealThree();
void showMenu();
private:
};
MealThree::MealThree()
{
}
void MealThree::showMenu()
{
cout<<"\nSelect type of seafood:"<<endl<<endl;
cout<<" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -------------------------------------------------\n";
cout<<" * '1' Fish Poussin 'RM 17.00' *"<<endl;
cout<<" * '2' Prawn and Scallop Au Gratin 'RM 19.50' *"<<endl;
cout<<" * '3' Whole Fried Fish 'RM 20.00' *"<<endl;
cout<<" * '4' Paella Stuffed Squid 'RM 14.90' *"<<endl;
cout<<" * '5' Pan Seared Salmon 'RM 22.30' *"<<endl;
cout<<" * '6' Exit *"<<endl;
cout<<" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"<<endl;
cout<<"\nYour choice : ";
}
class MealFour: public Menu
{
public:
MealFour();
void showMenu();
private:
};
MealFour::MealFour()
{
}
void MealFour::showMenu()
{
cout<<"\nSelect type of vegetables:"<<endl<<endl;
cout<<" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -------------------------------------------------------\n";
cout<<" * '1' Spinach,Chickpea and Tomato Curry 'RM 15.00' *"<<endl;
cout<<" * '2' Golden Fried Veggie Dumplings 'RM 11.50' *"<<endl;
cout<<" * '3' Fried Mushroon and Asparagus in Puff Pastry 'RM 12.00' *"<<endl;
cout<<" * '4' Eggplant Chili Honey 'RM 10.50' *"<<endl;
cout<<" * '5' Mixed vegetables with beancurd and green peppers 'RM 10.00' *"<<endl;
cout<<" * '6' Exit *"<<endl;
cout<<" "<<">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"<<endl;
cout<<"\nYour choice : ";
}
class MealFive: public Menu
{
public:
MealFive();
void showMenu();
private:
};
MealFive::MealFive()
{
}
void MealFive::showMenu()
{
cout<<"\nSelect type of pasta:"<<endl<<endl;
cout<<" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -------------------------------------------------------\n";
cout<<" * '1' Spagahetti with Tomato Sauce and Meatballs 'RM 12.30' *"<<endl;
cout<<" * '2' Classic Lasagna 'RM 10.90' *"<<endl;
cout<<" * '3' Manicotti 'RM 11.50' *"<<endl;
cout<<" * '4' Fettuccini Alfredo 'RM 10.90' *"<<endl;
cout<<" * '5' Paco's Pesto Penne 'RM 12.90' *"<<endl;
cout<<" * '6' Exit *"<<endl;
cout<<" "<<">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"<<endl;
cout<<"\nYour choice : ";
}
class DrinkOne: public Menu
{
public:
DrinkOne();
void showMenu();
private:
};
DrinkOne::DrinkOne()
{
}
void DrinkOne::showMenu()
{
cout<<"\nSelect type of coffee:"<<endl<<endl;
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" ~~ 1 Capuccino 'RM 8.00' ~~"<<endl;
cout<<" ~~ 2 Latte 'RM 9.00' ~~"<<endl;
cout<<" ~~ 3 Expresso 'RM 9.00' ~~"<<endl;
cout<<" ~~ 4 Mocha 'RM 8.00' ~~"<<endl;
cout<<" ~~ 5 Frapuccino 'RM 9.00' ~~"<<endl;
cout<<" ~~ 6 Exit ~~"<<endl;
cout<<" "<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
cout<<"\nYour choice : ";
}
class DrinkTwo: public Menu
{
public:
DrinkTwo();
void showMenu();
private:
};
DrinkTwo::DrinkTwo()
{
}
void DrinkTwo::showMenu()
{
cout<<"\nSelect type of soft drinks:"<<endl<<endl;
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" ~~ 1 100 plus 'RM 4.90' ~~"<<endl;
cout<<" ~~ 2 Coca-cola 'RM 4.90' ~~"<<endl;
cout<<" ~~ 3 Mountain dew 'RM 4.90' ~~"<<endl;
cout<<" ~~ 4 Pepsi 'RM 4.90' ~~"<<endl;
cout<<" ~~ 5 7-up 'RM 4.90' ~~"<<endl;
cout<<" ~~ 6 Exit ~~"<<endl;
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
cout<<"\nYour choice : ";
}
class DrinkThree: public Menu
{
public:
DrinkThree();
void showMenu();
private:
};
DrinkThree::DrinkThree()
{
}
void DrinkThree::showMenu()
{
cout<<"\nSelect type of juice:"<<endl<<endl;
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" ~~ 1 Apple Juice 'RM 5.50' ~~"<<endl;
cout<<" ~~ 2 Watermelon Juice 'RM 5.50' ~~"<<endl;
cout<<" ~~ 3 Honeydew Juice 'RM 5.50' ~~"<<endl;
cout<<" ~~ 4 Carrot Juice 'RM 5.50' ~~"<<endl;
cout<<" ~~ 5 Orange Juice 'RM 5.50' ~~"<<endl;
cout<<" ~~ 6 Exit ~~"<<endl;
cout<<" "<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
cout<<"\nYour choice : ";
}
class DrinkFour: public Menu
{
public:
DrinkFour();
void showMenu();
private:
};
DrinkFour::DrinkFour()
{
}
void DrinkFour::showMenu()
{
cout<<"\nSelect type of liquor:"<<endl<<endl;
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" ~~ 1 Vodka 'RM 30.00' ~~"<<endl;
cout<<" ~~ 2 Red wine 'RM 30.00' ~~"<<endl;
cout<<" ~~ 3 Champagne 'RM 30.00' ~~"<<endl;
cout<<" ~~ 4 Cocktail 'RM 30.00' ~~"<<endl;
cout<<" ~~ 5 White wine 'RM 30.00' ~~"<<endl;
cout<<" ~~ 6 Exit ~~"<<endl;
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
cout<<"\nYour choice : ";
}
class DrinkFive: public Menu
{
public:
DrinkFive();
void showMenu();
private:
};
DrinkFive::DrinkFive()
{
}
void DrinkFive::showMenu()
{
cout<<"\nSelect type of beer:"<<endl<<endl;
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" ---------------------------------------------\n";
cout<<" ~~ 1 Hoegaarden 'RM 11.00' ~~"<<endl;
cout<<" ~~ 2 Heineken 'RM 11.00' ~~"<<endl;
cout<<" ~~ 3 Calsberg 'RM 11.00' ~~"<<endl;
cout<<" ~~ 4 Tiger 'RM 11.00' ~~"<<endl;
cout<<" ~~ 5 Asahi 'RM 11.00' ~~"<<endl;
cout<<" ~~ 6 Exit ~~"<<endl;
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
cout<<"\nYour choice : ";
}
class DessertOne: public Menu
{
public:
DessertOne();
void showMenu();
private:
};
DessertOne::DessertOne()
{
}
void DessertOne::showMenu()
{
cout<<"\nSelect type of cake:"<<endl<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" ------------------------------------------------\n";
cout<<" * '1' No Bake Strawberry Icebox 'RM 7.00' *"<<endl;
cout<<" * '2' Fluffy Blueberry Chess cake 'RM 8.00' *"<<endl;
cout<<" * '3' Black Forest 'RM 7.50' *"<<endl;
cout<<" * '4' Tiramisu 'RM 9.00' *"<<endl;
cout<<" * '5' Spice Cake 'RM 7.50' *"<<endl;
cout<<" * '6' Exit *"<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl;
cout<<"\nYour choice : ";
}
class DessertTwo: public Menu
{
public:
DessertTwo();
void showMenu();
private:
};
DessertTwo::DessertTwo()
{
}
void DessertTwo::showMenu()
{
cout<<"\nSelect type of flavour ice-cream:"<<endl<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------------\n";
cout<<" * 1 Avocado 'RM 6.00' *"<<endl;
cout<<" * 2 Maple Walnut 'RM 5.50' *"<<endl;
cout<<" * 3 Nutmeg 'RM 7.00' *"<<endl;
cout<<" * 4 Sweet Potato Pecan 'RM 5.00' *"<<endl;
cout<<" * 5 Key Lime 'RM 5.50' *"<<endl;
cout<<" * 6 Exit *"<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl;
cout<<"\nYour choice : ";
}
class DessertThree: public Menu
{
public:
DessertThree();
void showMenu();
private:
};
DessertThree::DessertThree()
{
}
void DessertThree::showMenu()
{
cout<<"\nSelect type of Pie:"<<endl<<endl;
cout<<"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" * 1 Peanut Butter 'RM 7.00' *"<<endl;
cout<<" * 2 Boston Cream 'RM 8.50' *"<<endl;
cout<<" * 3 Southern Banana 'RM 7.50' *"<<endl;
cout<<" * 4 Lemon Pie Parfait 'RM 6.00' *"<<endl;
cout<<" * 5 Apple Pie A La Mode 'RM 7.00' *"<<endl;
cout<<" * 6 Exit *"<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl;
cout<<"\nYour choice : ";
}
class DessertFour: public Menu
{
public:
DessertFour();
void showMenu();
private:
};
DessertFour::DessertFour()
{
}
void DessertFour::showMenu()
{
cout<<"\nSelect type of Cookies:"<<endl<<endl;
cout<<"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" * 1 Thin Mint Truffles 'RM 6.50' *"<<endl;
cout<<" * 2 Aka Gorilla Poops 'RM 7.00' *"<<endl;
cout<<" * 3 Chocolate Bird Egg Nest 'RM 7.50' *"<<endl;
cout<<" * 4 Loving The Sprinkles 'RM 6.00' *"<<endl;
cout<<" * 5 Nutella No Bake 'RM 7.00' *"<<endl;
cout<<" * 6 Exit *"<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl;
cout<<"\nYour choice : ";
}
class DessertFive: public Menu
{
public:
DessertFive();
void showMenu();
private:
};
DessertFive::DessertFive()
{
}
void DessertFive::showMenu()
{
cout<<"\nSelect type of Brownies:"<<endl<<endl;
cout<<"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n";
cout<<" BIll NAME PRICE "<<endl;
cout<<" -----------------------------------------\n";
cout<<" * 1 Lemony Lemon 'RM 7.50' *"<<endl;
cout<<" * 2 Stuffed Brownies Bites 'RM 8.00' *"<<endl;
cout<<" * 3 Fudgy Chocolate 'RM 7.50' *"<<endl;
cout<<" * 4 Sweet and Salty 'RM 7.00' *"<<endl;
cout<<" * 5 Salted Caramel 'RM 8.00' *"<<endl;
cout<<" * 6 Exit *"<<endl;
cout<<" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl;
cout<<"\nYour choice : ";
}
void intro();
void menuFunction();
void mainMenu();
void menu1();
void menu2();
void menu3();
void menu4();
void appeOne();
void appeTwo();
void appeThree();
void appeFour();
void appeFive();
void mealOne();
void mealTwo();
void mealThree();
void mealFour();
void mealFive();
void drinkOne();
void drinkTwo();
void drinkThree();
void drinkFour();
void drinkFive();
void dessertOne();
void dessertTwo();
void dessertThree();
void dessertFour();
void dessertFive();
void TableConfimation();
int main()
{
intro();
menuFunction();
mainMenu();
cout<<"\n"<<"----------------------------------------"<<endl;
cout<<"<<<<< Thanks for using this program >>>>> "<<endl;
cout<<"<<<<< Your ordering will be deliver soon >>>>> "<<endl;
cout<<"<<<<< Enjoy your meal. >>>>> "<<endl;
cout<<"<<<<< Wish you have a good day >>>>> "<<endl;
cout<<"_____________________________________________________"<<endl;
system("pause");
return 0;
}
void intro()
{
cout<<"Group member : Yap Yee Shin" <<endl;
cout<<" : Bong Sheau Fong" <<endl;
cout<<" : Ong Li Yong" <<endl;
cout<<" : Wong Leh Ping" <<endl;
cout<<"Course Name : Object-oriented Programing"<<endl;
cout<<"Course Code : SW10403 / SM10403"<<endl;
cout<<"Project Title : Restaurant Ordering System" <<endl<<endl;
}
void menuFunction()
{
char TableNo[10];
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<" WELCOME to SECRET OF LOUISIANA RESTAURANT's ORDERING SYSTEM "<<endl;
cout<<" Appetizer , Main Course , Beverages , Dessert "<<endl;
cout<<" Once you ordered, we will sent the food to your table. "<<endl;
cout<<" Retrive your bills from the waiters beyond payments "<<endl;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"<<endl;
cout<<"Please enter your table's number:";
cin>>TableNo;
cout<<endl;
}
void mainMenu()
{
int menu;
Menu a;
a.showMenu();
cin>>menu;
if(menu == 1)
menu1();
else if(menu == 2)
menu2();
else if(menu == 3)
menu3();
else if(menu == 4)
menu4();
else
mainMenu();
}
void menu1()
{
int app;
Appetizer a;
a.showMenu();
cin>>app;
if(app == 1)
appeOne();
else if(app == 2)
appeTwo();
else if(app == 3)
appeThree();
else if(app == 4)
appeFour();
else if(app == 5)
appeFive();
else
Appetizer();
}
void menu2()
{
int main;
MainCourse b;
b.showMenu();
cin>>main;
if(main == 1)
mealOne();
else if(main == 2)
mealTwo();
else if(main == 3)
mealThree();
else if(main == 4)
mealFour();
else if(main == 5)
mealFive();
else
MainCourse();
}
void menu3()
{
int drinks;
Beverages c;
c.showMenu();
cin>>drinks;
if(drinks == 1)
drinkOne();
else if(drinks == 2)
drinkTwo();
else if(drinks == 3)
drinkThree();
else if(drinks == 4)
drinkFour();
else if(drinks == 5)
drinkFive();
else
Beverages();
}
void menu4()
{
int dessert;
Dessert d;
d.showMenu();
cin>>dessert;
if(dessert == 1)
dessertOne();
else if(dessert == 2)
dessertTwo();
else if(dessert == 3)
dessertThree();
else if(dessert == 4)
dessertFour();
else if(dessert == 5)
dessertFive();
else
Dessert();
}
void appeOne()
{
int salad;
int quan1=0, quan2=0, quan3=0, quan4=0, quan5=0;
char purchase;
AppeOne e;
e.showMenu();
cin>>salad;
switch (salad)
{
case 1:
cout<<"Please key in the quantity you want: ";
cin>>quan1;
cout<<endl;
cout<<"Do you want to continue in purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
break;
case 2:
cout<<"How many quantity you want: ";
cin>>quan2;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan3;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan4;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan5;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void appeTwo()
{
int soup;
int quan6=0, quan7=0, quan8=0, quan9=0, quan10=0;
char purchase;
AppeTwo f;
f.showMenu();
cin>>soup;
switch (soup)
{
case 1:
cout<<"Please key in the quantity you want: ";
cin>>quan6;
cout<<endl;
cout<<"Do you want to continue in purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
break;
case 2:
cout<<"How many quantity you want: ";
cin>>quan7;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan8;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan9;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan10;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void appeThree()
{
int bread;
int quan11=0, quan12=0, quan13=0, quan14=0, quan15=0;
char purchase;
AppeThree g;
g.showMenu();
cin>>bread;
switch (bread)
{
case 1:
cout<<"Please key in the quantity you want: ";
cin>>quan11;
cout<<endl;
cout<<"Do you want to continue in purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
break;
case 2:
cout<<"How many quantity you want: ";
cin>>quan12;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan13;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan14;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan15;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void appeFour()
{
int snack;
int quan16=0, quan17=0, quan18=0, quan19=0, quan20=0;
char purchase;
AppeFour h;
h.showMenu();
cin>>snack;
switch (snack)
{
case 1:
cout<<"Please key in the quantity you want: ";
cin>>quan16;
cout<<endl;
cout<<"Do you want to continue in purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
break;
case 2:
cout<<"How many quantity you want: ";
cin>>quan17;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan18;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan19;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan20;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void appeFive()
{
int sandwich;
int quan21=0, quan22=0, quan23=0, quan24=0, quan25=0;
char purchase;
AppeFive i;
i.showMenu();
cin>>sandwich;
switch (sandwich)
{
case 1:
cout<<"Please key in the quantity you want: ";
cin>>quan21;
cout<<endl;
cout<<"Do you want to continue in purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
break;
case 2:
cout<<"How many quantity you want: ";
cin>>quan22;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan23;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan24;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan25;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void mealOne()
{
int chick;
int quan26=0, quan27=0, quan28=0, quan29=0, quan30=0;
char purchase;
MealOne k;
k.showMenu();
cin>>chick;
switch (chick)
{
case 1:
cout<<"Please key in the quantity you want: ";
cin>>quan26;
cout<<endl;
cout<<"Do you want to continue in purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
break;
case 2:
cout<<"How many quantity you want: ";
cin>>quan27;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan28;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan29;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan30;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void mealTwo()
{
int Meat;
int quan31=0, quan32=0, quan33=0, quan34=0, quan35=0;
char purchase;
MealTwo l;
l.showMenu();
cin>>Meat;
switch (Meat)
{
case 1:
cout<<"How many quantity you want: ";
cin>>quan31;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 2:
cout<<"Quantity: ";
cin>>quan32;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"Quantity: ";
cin>>quan33;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan34;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan35;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void mealThree()
{
int seafood;
int quan36=0, quan37=0, quan38=0, quan39=0, quan40=0;
char purchase;
MealThree m;
m.showMenu();
cin>>seafood;
switch (seafood)
{
case 1:
cout<<"How many quantity you want: ";
cin>>quan36;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 2:
cout<<"How many quantity you want: ";
cin>>quan37;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan38;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan39;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan40;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void mealFour()
{
int veggie;
int quan41=0, quan42=0, quan43=0, quan44=0, quan45=0;
char purchase;
MealFour n;
n.showMenu();
cin>>veggie;
switch (veggie)
{
case 1:
cout<<"How many quantity you want: ";
cin>>quan41;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 2:
cout<<"How many quantity you want: ";
cin>>quan42;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan43;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan44;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan45;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void mealFive()
{
int pasta;
int quan46=0, quan47=0, quan48=0, quan49=0, quan50=0;
char purchase;
MealFour o;
o.showMenu();
cin>>pasta;
switch (pasta)
{
case 1:
cout<<"How many quantity you want: ";
cin>>quan46;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 2:
cout<<"How many quantity you want: ";
cin>>quan47;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan48;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan49;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan50;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void drinkOne()
{
int coffee;
int quan51=0, quan52=0, quan53=0, quan54=0, quan55=0;
char purchase;
DrinkOne p;
p.showMenu();
cin>>coffee;
switch (coffee)
{
case 1:
cout<<"How many quantity you want: ";
cin>>quan51;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 2:
cout<<"How many quantity you want: ";
cin>>quan52;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 3:
cout<<"How many quantity you want: ";
cin>>quan53;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 4:
cout<<"How many quantity you want: ";
cin>>quan54;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 5:
cout<<"How many quantity you want: ";
cin>>quan55;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
default:
cout<<" Invalid Choice "<<endl;
}
}
void drinkTwo()
{
int softdrinks;
int quan56=0, quan57=0, quan58=0, quan59=0, quan60=0;
char purchase;
DrinkTwo q;
q.showMenu();
cin>>softdrinks;
switch (softdrinks)
{
case 1:
cout<<"How many quantity you want: ";
cin>>quan56;
cout<<endl;
cout<<"Do you want to continue purchasing (y/n)? ";
cin>>purchase;
cout<<endl;
if (purchase == 'y' || 'Y')
Menu();
else if (purchase == 'n' || 'N')
TableConfimation();
else
cout<<"Invalid Choice!"<<endl;
case 2:
cout<&l
victoria.lim.773124 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.