예제 #1
0
        static void Main(string[] args)
        {
            ScoringAlgorithm algorithm;

            Console.WriteLine("Men");
            algorithm = new MenScoringAlgorithm();
            Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 3, 30)));

            Console.WriteLine("Women");
            algorithm = new WomenScoringAlgorithm();
            Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 0)));
        }
예제 #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)));
        }
예제 #3
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("Women");
            scoringAlgorithm = new WomenScoringAlgorithm();
            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.ReadKey();
        }
예제 #4
0
        static void Main(string[] args)
        {
            ScoringAlgortihm algortihm;

            Console.WriteLine("Men");

            algortihm = new MenScoringAlgorithm();

            Console.WriteLine(algortihm.GenerateScore(10, new TimeSpan(0, 0, 34)));

            Console.WriteLine("Women");
            algortihm = new WomenScoringAlgorithm();

            Console.WriteLine(algortihm.GenerateScore(10, new TimeSpan(0, 0, 34)));

            Console.WriteLine("Child");
            algortihm = new ChildScoringAlgorithm();

            Console.WriteLine(algortihm.GenerateScore(10, new TimeSpan(0, 0, 34)));

            Console.ReadLine();
        }