#include
#include
using namespace std;
char DisplayStartupMenu(); char DisplayMenu1(); char DisplaySizeMenu(); char DisplayMenu2(); float DetermineSizeFactor(char,float); char DisplayMenu2(); void DisplayOrder(float,float,string);
const int Mprice = 30; const int Cprice = 60; const int Sprice = 100; const int Vprice = 40; const int Avo = 5; const int Bacon = 8; const int Chicken = 7; const int Chilli = 5; const int Feta = 10; const int Garlic = 5; const int Pepper = 5; const int Ham = 8; const int Mince = 8; const int Mushr = 5; const int Pine = 5; const int XtraCh = 5;
void main()
{
float price; float TotOwing=0.0; string pizza; string AlreadyOrdered; char startChoice,choice1,sizeChoice,choice2; float sizeFactor = 0.0;
startChoice = DisplayStartupMenu(); while((startChoice =='B')||(startChoice =='b')) { choice1=DisplayMenu1(); while((choice1 == 'M')||(choice1 == 'm')||(choice1 == 'C')||(choice1 == 'c')||(choice1 == 'S')|| (choice1 == 's')||(choice1 == 'V')||(choice1 == 'v')||(choice1 == 'O')||(choice1 == 'o')||(choice1 == 'Q')||(choice1 == 'q')) { price = 0.0; switch(choice1) { case 'M': case 'm': price = price + Mprice; AlreadyOrdered = AlreadyOrdered + "Margherita "; break;
case 'C': case 'c': price = price + Cprice; AlreadyOrdered = AlreadyOrdered + "Carnivore "; break; case 'S': case 's': price = price + Sprice; AlreadyOrdered = AlreadyOrdered + "Seafood "; break; case 'V': case 'v': price = price + Vprice; AlreadyOrdered = AlreadyOrdered + "Vegetable "; break; case 'O': case 'o':choice2=DisplayMenu2(); //while((choice2 == 'I')||(choice2 == 'i')||(choice2 == 'A')||(choice2 == 'a')||(choice2 == 'B') //||(choice2 == 'b')||(choice2 == 'C')||(choice2 == 'c')||(choice2 == 'F')||(choice2 == 'f') //||(choice2 == 'G')||(choice2 == 'g')||(choice2 == 'R')||(choice2 == 'r')||(choice2 == 'H') //||(choice2 == 'h')||(choice2 == 'M')||(choice2 == 'm')||(choice2 == 'U')||(choice2 == 'u') //||(choice2 == 'P')||(choice2 == 'p')||(choice2 == 'X')||(choice2 == 'x')||(choice2 == 'S') //||(choice2 == 's')||(choice2 == 'N')||(choice2 == 'n')) //{ // switch(choice2) //{ // case 'A': //case 'a': price = price + Avo; //AlreadyOrdered = AlreadyOrdered + "Own Pizza +";
//}
//}
break; case 'Q': case 'q':startChoice=DisplayStartupMenu(); break; } if ((choice1 == 'M')||(choice1 == 'm')||(choice1 == 'C')||(choice1 == 'c')||(choice1 == 'S')|| (choice1 == 's')||(choice1 == 'V')||(choice1 == 'v'))
{ sizeChoice=DisplaySizeMenu(); AlreadyOrdered = AlreadyOrdered + "(" + sizeChoice + ")" + "+" ; sizeFactor=DetermineSizeFactor(sizeChoice,sizeFactor); price=price*sizeFactor; TotOwing=TotOwing+price; DisplayOrder(price,TotOwing,AlreadyOrdered); cout