Пример #1
0
        static void Main(string[] args)
        {
            try
            {
                Console.WriteLine("Starting Shopping Basket..." + Environment.NewLine + Environment.NewLine);

                ShoppingBasket basket = new ShoppingBasket();

                basket.GetCommand(Console.ReadLine());

                Console.WriteLine(basket.Output());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            finally
            {
                Console.WriteLine(Environment.NewLine + "Finished.");
                Console.ReadKey();
            }
        }
Пример #2
0
 public abstract decimal CalculateDiscount(ShoppingBasket basket);