Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            SBAccount SB   = new SBAccount();
            CCAccount CA   = new CCAccount();
            double    si   = SB.Get_Simple_Intrest(95000, 5, 8);
            double    tamt = SB.Get_Total_Amount(si, 50000);

            double si1   = CA.Get_Simple_Intrest(95000, 5, 8);
            double tamt1 = SB.Get_Total_Amount(si1, 50000);

            Console.WriteLine("The Simple Intrest = {0}", si);
            Console.WriteLine("The Total Amount  = {0}", tamt);



            Console.WriteLine("The Simple Intrest for CA = {0}", si1);
            Console.WriteLine("The Total Amount for CA  = {0}", tamt1);
            //object o=new object();
            SB.show();
        }
        static void Main(string[] args)
        {
            SBAccount objSB = new SBAccount();
            CCAccount objCC = new CCAccount();

            double siSB = objSB.GetSimpleInterest(95000.00, 5, 8);
            double tamt = objSB.GetTotalAmount(50000.00, siSB);

            Console.WriteLine("Simple Interest(savings account): Rs {0}", siSB);
            Console.WriteLine("Total Amount: RS {0}", tamt);

            double siCC = objCC.GetSimpleInterest(95000.00, 5, 8);

            tamt = objCC.GetTotalAmount(50000.00, siCC);

            Console.WriteLine("Simple Interest(current account): Rs {0}", siCC);
            Console.WriteLine("Total Amount: Rs {0}", tamt);

            objSB.Show();
        }