Exemple #1
0
        public static void ShowFinalPrice(float money)
        {
            //BRIDGE
            //
            //Price after further talking with the client
            Console.WriteLine("Final price:" + money * 100);
            Console.WriteLine("In what monetary unit would you like your final price to be in : ");
            Console.WriteLine("1.Dollar 2.Euro 3.Lei");
            string number = Console.ReadLine();

            switch (number)
            {
            case "1":
            {
                Dollar dollar = new Dollar();
                dollar.MoneyConvert(money * 100);
                break;
            }

            case "2":
            {
                Dollar dollar = new Dollar();
                dollar.MoneyConvert(money * 100);
                break;
            }

            case "3":
            {
                Console.WriteLine(money * 100 + " Lei");
                break;
            }

            default:
            {
                Console.WriteLine("error");
                break;
            }
            }
        }