static void Main(string[] args) { ScoringAlgorith algorith; Console.WriteLine("mans"); algorith = new MensScoringAlgorith(); Console.WriteLine(algorith.GenerateScore(10, new TimeSpan(0, 2, 34))); Console.WriteLine("Woman"); algorith = new WomanScoringAlgorith(); Console.WriteLine(algorith.GenerateScore(10, new TimeSpan(0, 2, 34))); Console.WriteLine("Children"); algorith = new ChildrenScoringAlgorith(); Console.WriteLine(algorith.GenerateScore(10, new TimeSpan(0, 2, 34))); Console.ReadLine(); }
static void Main(string[] args) { ScoringAlgorithm algorithm; Console.WriteLine("Mans"); algorithm = new MensScoringAlgorith(); Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 35))); Console.WriteLine("Womnas"); algorithm = new WomansScoringAlgorith(); Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 35))); Console.WriteLine("Children"); algorithm = new ChildrenScoringAlgorith(); Console.WriteLine(algorithm.GenerateScore(8, new TimeSpan(0, 2, 35))); Console.ReadLine(); }