Example #1
0
        static void WithdrawChecking()
        {
            Console.WriteLine("You have choosen to withdraw funds from your checking account.");
            Withdraw.currentAmount = 2550;//demo amount
            Console.WriteLine("As of today your current balance is ${0}", Withdraw.currentAmount);
            Console.WriteLine("How much funds in your checking do you wish to withdrawal?");
            Withdraw.minusMoney = Convert.ToDouble(Console.ReadLine());

            while ((Withdraw.minusMoney > Withdraw.currentAmount) || (Withdraw.minusMoney < 0))
            {
                Console.WriteLine();
                Console.WriteLine("You requested the total amount of ${0}.", Withdraw.minusMoney);
                Console.WriteLine("That amount either exceeds your current balance or is a negative value.");
                Console.WriteLine("How much funds in your checking do you wish to withdrawal?");
                Withdraw.minusMoney = Convert.ToDouble(Console.ReadLine());
            }

            Console.WriteLine("You requested the total amount of ${0}", Withdraw.minusMoney);
            Withdraw minusChecking = new Withdraw();

            minusChecking.checkingBalance();
            minusChecking.printChBalance();
        }