static string item(string aytem, string aray, string aray1, string aray2, int num) {
if (num == 1) { aytem = aray; }
if (num == 2) { aytem = aray1; }
if (num == 3) { aytem = aray2; }
static int price(int prays, int aray, int aray1, int aray2, int num) {
if (num == 1) { prays = aray; }
if (num == 2) { prays = aray1; }
if (num == 3) { prays = aray2; }
static void print1(string pangalan) {
Console.WriteLine("=====================================================================================================================================================");
Console.WriteLine(" \nFestive Flash Eatery\nSamson Road, Caloocan City\nOrder #1000\nName of Customer: {0}\n ", pangalan);
Console.WriteLine("Orders:");
Console.WriteLine("Total: P375\nCash: P1000\nChange: P625\n ");
Console.WriteLine("Thank you for ordering!\nHave a nice day!\n ");
Console.WriteLine("=====================================================================================================================================================");
public static void Main() {
string[] menuarray = {"MEALS\nA1. Lasagna\nA2. Hawaiian Pizza\nA3. Chili", "BEVERAGES\nB1. Coffee\nB2. Iced Tea\nB3. Milktea", "DESSERTS\nC1. Strawberry Cake\nC2. Butter Cake\nC3. Cheese Cake"};
string[] regarray = {"Lasagna Regular Size", "Hawaiian Pizza Regular Size", "Chili Regular Size", "Coffee Regular Size", "Iced Tea Regular Size", "Milk Tea Regular Size", "Strawberry Cake Regular Size", "Butter Cake Regular Size", "Cheese Cake Regular Size"};
string[] medarray = {"Lasagna Medium Size", "Hawaiian Pizza Medium Size", "Chili Medium Size", "Coffee Medium Size", "Iced Tea Medium Size", "Milk Tea Medium Size", "Strawberry Cake Medium Size", "Butter Cake Medium Size", "Cheese Cake Medium Size"};
string[] lararray = {"Lasagna Large Size", "Hawaiian Pizza Large Size", "Chili Large Size", "Coffee Large Size", "Iced Tea Large Size", "Milk Tea Large Size", "Strawberry Cake Large Size", "Butter Cake Large Size", "Cheese Cake Large Size"};
int[] regprices = {175, 250, 100, 50, 60, 95, 99, 45, 399};
int[] medprices = {275, 450, 200, 75, 80, 105, 199, 65, 499};
int[] larprices = {375, 650, 300, 100, 100, 175, 299, 85, 599};
Console.Write("Enter your name:");
name = Console.ReadLine();
Console.WriteLine("Pick a category, {0}:\n1. Meals\n2. Beverages\n3. Desserts", name);
category = Convert.ToInt32(Console.ReadLine());
case 1: list = menuarray[0]; Console.WriteLine(list); break;
case 2: list = menuarray[1]; Console.WriteLine(list); break;
case 3: list = menuarray[2]; Console.WriteLine(list); break;
Console.WriteLine("Place your order");
order = Console.ReadLine();
Console.WriteLine("What size is your order?");
size = Convert.ToInt32(Console.ReadLine());
outname = item(itemname, regarray[0], medarray[0], lararray[0], size);
outprice = price(itemprice, regprices[0], medprices[0], larprices[0], size);
outname = item(itemname, regarray[1], medarray[1], lararray[1], size);
outprice = price(itemprice, regprices[1], medprices[1], larprices[1], size);
outname = item(itemname, regarray[2], medarray[2], lararray[2], size);
outprice = price(itemprice, regprices[2], medprices[2], larprices[2], size);
outname = item(itemname, regarray[3], medarray[3], lararray[3], size);
outprice = price(itemprice, regprices[3], medprices[3], larprices[3], size);
outname = item(itemname, regarray[4], medarray[4], lararray[4], size);
outprice = price(itemprice, regprices[4], medprices[4], larprices[4], size);
outname = item(itemname, regarray[5], medarray[5], lararray[5], size);
outprice = price(itemprice, regprices[5], medprices[5], larprices[5], size);
outname = item(itemname, regarray[6], medarray[6], lararray[6], size);
outprice = price(itemprice, regprices[6], medprices[6], larprices[6], size);
outname = item(itemname, regarray[7], medarray[7], lararray[7], size);
outprice = price(itemprice, regprices[7], medprices[7], larprices[7], size);
outname = item(itemname, regarray[8], medarray[8], lararray[8], size);
outprice = price(itemprice, regprices[8], medprices[8], larprices[8], size);
Console.WriteLine("How many pcs of {0} do you want?", outname);
quantity = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Do you want to confirm this order?\n{0}pcs of {1} for P{2}", quantity, outname, outprice);
conf = Console.ReadLine();
Console.WriteLine("Enter cash payment here\nBEWARE: Your orders will automatically be deleted if your cash is less than your total.");
cash = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Your order has been cancelled. Do you want to order again?\nType Y to go back to the menu. Type N to leave the program.");
reorder = Console.ReadLine();
else if (reorder == "N") {
semifinalprice = outprice * quantity;
Console.WriteLine("Try again.");