示例#1
0
        static void Main(string[] args)
        {
            FixedDeposit        fixeddeposit        = new FixedDeposit("priyank", 100000, 10, new NormalRate());
            PrintSimpleinterest printsimpleinterest = new PrintSimpleinterest();

            printsimpleinterest.Printinfo(fixeddeposit);
        }
示例#2
0
 private static void PrintInfo(FixedDeposit fixedDeposit)
 {
     Console.WriteLine("======= Fixed Deposit Info ========");
     Console.WriteLine("Account Number   :   " + fixedDeposit.AccountNumber);
     Console.WriteLine("Account Name     :   " + fixedDeposit.AccountName);
     Console.WriteLine("Amount           :   " + fixedDeposit.Amount);
     Console.WriteLine("Years            :   " + fixedDeposit.Years);
     Console.WriteLine("Festival Rate    :   " + Math.Round(fixedDeposit.GetFestivalRate.getRate(), 2));
     Console.WriteLine("Total Amount     :   " + Math.Round(fixedDeposit.CalculateSimpleInterest(), 2));
 }
        static void Main(string[] args)
        {
            FixedDeposit fixedAccount = new FixedDeposit("account1", 1000, 2, new Holi());

            Console.WriteLine("name " + fixedAccount.Name);
            Console.WriteLine("Principle " + fixedAccount.Principle);
            Console.WriteLine("Year " + fixedAccount.year);
            Console.WriteLine("festival " + fixedAccount.FEstival);
            Console.WriteLine("simple interest " + fixedAccount.CalculateSimpleInterest());
        }
示例#4
0
        static void Main(string[] args)
        {
            FixedDeposit fixedDeposit = new FixedDeposit(1001, "Sumit Gupta", 50000, 50000, 5, new DiwaliRate());

            PrintInfo(fixedDeposit);
        }
示例#5
0
 public void Printinfo(FixedDeposit f)
 {
     Console.WriteLine("Name:{0}", f.Name);
     Console.WriteLine("Principal Amount:{0}", f.PrincipalAmount);
     Console.WriteLine("Simple Interest:{0}", f.CalculateSimpleInterest());
 }
示例#6
0
        static void Main(string[] args)
        {
            FixedDeposit fixdep = new FixedDeposit("meet", 100000, 10, new DiwaliRate());

            Console.WriteLine("SImple Interest:{0}", fixdep.CalculateSimpleInterest());
        }