public static bool CheckoutMenu(List <FoodItem> order) { while (true) { //Console.WriteLine($"Now checking you out. Your total is {String.Format("{0:C}", OrderOptions.GetTotalCost(order, OrderOptions.taxPercentageDecimal))}\n" + // "Type in a number from the list to:\n" + // "1. Pay by Cash\n" + // "2. Pay by Credit Card\n" + // "3. Pay by Check\n" + // "4. Cancel and go back to your order\n"); //OrderOptions.ListCurrentOrderDetails(order, "Your Order"); Console.WriteLine(@" ...................................................................... |,---. . ,-. . . ,--. ,-. . | | | | / | | | / | | | | |-. ,-. | |-. ,-: |- --- |- | |-. ,-. ,-. ,-. ,-.| | | | | |-' \ | | | | | | \ | | |-' |-' `-. |-'| | ' ' ' `-' `-' ' ' `-` `-' `--' `-' ' ' `-' `-' `-' `-'| |....................................................................| | : : : :::#:#:#:#:##:##:######:#####:#############|________|________| | : : : :::#:#:#:#:##:##:######:#####:#############| | | | : : : : : ::#:#:#:#:#:##:###:###:#####:##########| | | | : : : (-) :::#:#:#:#:#:#:##:####:###:###:####:##| | | |______.-'-'-.___________________________:####::###|________|________| | |-...-| _____ .--''''''--. \:###:#####:################| | |;:.._| O/ BILL / |'''''/ | \:# ###| | `-...-' /oO o / '''''/_...--'| \# 1. Pay with Cash ###| | o/O____O/ /\ |__...--' \ 2. Pay with Check ###| |_________________________/ \_______________\ 3. Pay with Credit | | | | card. |"); Console.WriteLine($"| Your total is { $"{String.Format("{0:C}", OrderOptions.GetTotalCost(order, OrderOptions.taxPercentageDecimal))}",-10} | | 4. Never mind. Go | "); Console.WriteLine("| How are you paying? | | back. |\n" + "|......................................|.|...........................| \n"); Console.Write("Type a number to make a selection: "); int checkoutUserInput = Convert.ToInt32(Validation.NumberVal(Console.ReadLine())); switch (checkoutUserInput) { case 1: Console.Clear(); OrderOptions.ListCurrentOrderDetails(order, "Your Order"); Checkout.Cash(order); Console.WriteLine("\nPress enter to continue.\n"); string z = Console.ReadLine(); return(false); case 2: Console.Clear(); OrderOptions.ListCurrentOrderDetails(order, "Your Order"); Checkout.Check(order); Console.WriteLine("\nPress enter to continue.\n"); string y = Console.ReadLine(); return(false); case 3: Console.Clear(); OrderOptions.ListCurrentOrderDetails(order, "Your Order"); Checkout.CreditCard(order); Console.WriteLine("\nPress enter to continue.\n"); string x = Console.ReadLine(); return(false); case 4: Console.Clear(); return(true); default: Console.WriteLine("Not an option. Please try again.."); break; } } }