예제 #1
0
        //removes student from student list in Gradebook object
        public static void RemoveStudentCommand(string command)
        {
            var parts = command.Split(' ');

            if (parts.Length != 2)
            {
                Console.WriteLine("Invalid command, Remove requires a name.");
                return;
            }
            var name = parts[1];

            Gradebook.RemoveStudent(name);
            Console.WriteLine("{0} removed from the gradebook.", name);
        }