Beispiel #1
0
        static void Main(string[] args)
        {
            ScoringAlgorithm scoringAlgorithm;

            Console.WriteLine("Mans");
            scoringAlgorithm = new MensScoringAlgorithm();
            Console.WriteLine(scoringAlgorithm.GenerateScore(10, new TimeSpan(0, 2, 34)));
            Console.WriteLine("Woman");
            scoringAlgorithm = new WomanScoringAlgorithm();
            Console.WriteLine(scoringAlgorithm.GenerateScore(10, new TimeSpan(0, 2, 34)));
            Console.WriteLine("Children");
            scoringAlgorithm = new ChildrenScoringAlgorithm();
            Console.WriteLine(scoringAlgorithm.GenerateScore(10, new TimeSpan(0, 2, 34)));
            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            ScoringAlgorithm algorithm;

            Console.WriteLine("mans");
            algorithm = new MensScoringAlgorithm();
            Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 34)));

            Console.WriteLine("Womens");
            algorithm = new WomenScoringAlgorithm();
            Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 10)));

            Console.WriteLine("Children");
            algorithm = new ChildrenScoringAlgorithm();
            Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 35)));
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            ScoringAlgortihm Algortihm;

            Console.WriteLine("Mans");
            Algortihm = new MensScoringAlgorithm();
            Console.WriteLine(Algortihm.GenerateScore(7, new TimeSpan(0, 2, 14)));


            Console.WriteLine("Voman");
            Algortihm = new WomanScoringAlgorithm();
            Console.WriteLine(Algortihm.GenerateScore(7, new TimeSpan(0, 2, 0)));


            Console.WriteLine("Kids");
            Algortihm = new KidsScoringAlgorithm();
            Console.WriteLine(Algortihm.GenerateScore(7, new TimeSpan(0, 1, 54)));

            Console.ReadLine();
        }