コード例 #1
0
        public static void StudentStatisticsCommand(string command)
        {
            var parts = command.Split(' ');

            if (parts.Length != 2)
            {
                Console.WriteLine("Command not valid, Requires Name or All.");
                return;
            }
            var name = parts[1];

            GradeBook.CalculateStudentStatistics(name);
        }
コード例 #2
0
 public static void StatisticsCommand()
 {
     GradeBook.CalculateStudentStatistics();
 }