Esempio n. 1
0
        public static double Case3SecondAccount(int accountnumber, double initialbalance, double amountwithdrawcad, double amountdepositcad)
        {
            double case3 = 0;

            if (accountnumber == 5500)
            {
                Cases newcase = new Cases(002, "Joe Swanson", accountnumber, initialbalance);
                case3 = newcase.Case3SecondAccount(accountnumber, initialbalance, amountwithdrawcad, amountdepositcad);
                newcase.PrintDetail();
            }
            else
            {
                Console.WriteLine("Please provide corrct Account Number");
            }
            return(case3);
        }
Esempio n. 2
0
        public static double Case2(int accountnumber, double initialbalance, double amountwithdrawmxn, double amountwithdrawusd, double amountdepositcad)
        {
            double case2 = 0;

            if (accountnumber == 2001)
            {
                Cases newcase = new Cases(504, "Glenn Quagmire", accountnumber, initialbalance);
                case2 = newcase.Case2(accountnumber, initialbalance, amountwithdrawmxn, amountwithdrawusd, amountdepositcad);
                newcase.PrintDetail();
            }
            else
            {
                Console.WriteLine("Please provide corrct Account Number");
            }
            return(case2);
        }
Esempio n. 3
0
        public static double Case1(int accountnumber, double initialbalance, double amountdepositusd)
        {
            double case1 = 0;

            if (accountnumber == 1234)
            {
                Cases newcase = new Cases(777, "Stewie Griffin", accountnumber, initialbalance);
                case1 = newcase.Case1(accountnumber, initialbalance, amountdepositusd);
                newcase.PrintDetail();
            }
            else
            {
                Console.WriteLine("Please provide corrct Account Number");
            }
            return(case1);
        }
Esempio n. 4
0
        public static double Case5(int accountnumber, double initialbalance, double amountwithdrawusd)
        {
            double case5 = 0;

            if (accountnumber == 1010)
            {
                Cases newcase = new Cases(002, "Joe Swanson", accountnumber, initialbalance);
                case5 = newcase.Case5(accountnumber, initialbalance, amountwithdrawusd);
                newcase.PrintDetail();
            }
            else
            {
                Console.WriteLine("Please provide corrct Account Number");
            }
            return(case5);
        }
Esempio n. 5
0
        public static double Case4SecondAccount(int accountnumber, double initialbalance, double amountwithdrawcad, double amountdepositusd)
        {
            double case4 = 0;

            if (accountnumber == 456)
            {
                Cases newcase = new Cases(456, "Lois Griffin", accountnumber, initialbalance);
                case4 = newcase.Case4SecondAccount(accountnumber, initialbalance, amountwithdrawcad, amountdepositusd);
                newcase.PrintDetail();
            }
            else
            {
                Console.WriteLine("Please provide corrct Account Number");
            }
            return(case4);
        }
Esempio n. 6
0
        public static double Case4FirstAccount(int accountnumber, double initialbalance, double amountwithdrawusd, double amountdepositcad)
        {
            double case4 = 0;

            if (accountnumber == 0123)
            {
                Cases newcase = new Cases(0123, "Peter Griffin", accountnumber, initialbalance);
                case4 = newcase.Case4FirstAccount(accountnumber, initialbalance, amountwithdrawusd, amountdepositcad);
                newcase.PrintDetail();
            }
            else
            {
                Console.WriteLine("Please provide corrct Account Number");
            }
            return(case4);
        }