<<" ___________________Menu________________\n\n"
<<" Breakfast (6:30am-10:00am)\n\n"
<<"(1) English breakfast(bread & butter,boiled egg and juice) RM5.50\n"
<<"(2) Malaysia Nasik Lemak with Teh Tarik RM 4.00\n\n"
<<" Lunch (11:00am-2:30pm)\n\n"
<<"(3) Set Lunch 1 – Rice, vegetable and sweet sour fish RM7.50\n"
<<"(4) Set Lunch 2 – Chicken rice RM6.50\n\n"
<<" Dinner (6:00pm-8:30pm)\n\n"
<<"(5) Spaghetti Bolognese RM7.00\n"
<<"(6) 1,2,3 RM5.00\n";
while (order != sentinel)
{
cout<<"From the list of food, what would you like:\n";
cin>>order;
switch(order)
{
case 0:
break;
case 1:
cout<<"How many English Breakfast (bread & butter,boiled egg and juice) would you like to order:\n";
cin>>num1;
AmountofSale1 = UnitPrice1 * num1;
break;
case 2:
cout<<"How many Malaysia Nasik Lemak with Teh Tarik would you like to order:\n";
cin>>num2;
AmountofSale2= UnitPrice2 * num2;
break;
case 3:
cout<<"How many Set Lunch 1 – Rice, vegetable and sweet sour fish would you like to order:\n";
cin>>num3;
AmountofSale3= UnitPrice3 * num3;
break;
case 4:
cout<<"How many Set Lunch 2 – Chicken rice would you like to order:\n";
cin>>num4;
AmountofSale4= UnitPrice4 * num4;
break;
case 5:
cout<<"How many Spaghetti Bolognese would you like to order:\n";
cin>>num5;
AmountofSale5= UnitPrice5 * num5;
break;
case 6:
cout<<"How many 1,2,3 would you like to order:\n";
cin>>num6;
AmountofSale4= UnitPrice6 * num6;
break;
default: cout<<"Please choose a valid item from our list\n";
}
{
what should i do if i would like to print the total price? also, if a customer orders more than 1 item,10% discount will be given,if more than 2 item,15% discount will be given. How do i do that?