public static void Test()
 {
     InterestCalculator firstcalc = new InterestCalculator(500, 5.6d, 10, Interest.CalculateCompoundInterest);
     Console.WriteLine(firstcalc.PrintCalculation());
     InterestCalculator secondcalc = new InterestCalculator(2500, 7.2d, 15, Interest.CalculateSimpleIntrest);
     Console.WriteLine(secondcalc.PrintCalculation());
 }
Example #2
0
        public static void Test()
        {
            InterestCalculator firstcalc = new InterestCalculator(500, 5.6d, 10, Interest.CalculateCompoundInterest);

            Console.WriteLine(firstcalc.PrintCalculation());
            InterestCalculator secondcalc = new InterestCalculator(2500, 7.2d, 15, Interest.CalculateSimpleIntrest);

            Console.WriteLine(secondcalc.PrintCalculation());
        }
Example #3
0
 static void Main(string[] args)
 {
     startProblems();
     nextProblem("You are about to check out Problem 1: InterestCalculator.");
     InterestCalculator.Test();
     nextProblem("\n\n\nYou are about to check the Second Problem : Async Timer");
     AsyncTimer.Tester();
     //nextProblem("Looks like this was everything.");
     nextProblem("\n\nNext, you're going to see Problem 3: Student Class");
     Student.Tester();
     exit();
 }