public static void Main(string[] args)
        {
            try
            {
                Student student = Student.GetStudentInformation();
                student.PrintStudentInformation();
                Student.ValidatingStudentBirthday();
            }
            catch (NotImplementedException ex)
            {
                Console.WriteLine(ex.Message);
            }
            catch (FormatException e)
            {
                Console.WriteLine("The data you entered is incorrect format");
            }
            Teacher teacher = Teacher.GetTeacherInformation();

            teacher.PrintTeacherInformation();
            Uprogram uprogram = Uprogram.GetUprogramInformation();

            uprogram.PrintUprogramInformation();
            DegreeInfo degree = DegreeInfo.GetDegreeInformation();

            degree.PrintDegreeInformation();
            CourseInfo course = CourseInfo.GetCourseInformation();

            course.PrintCourseInformation();
        }
Exemple #2
0
        public static DegreeInfo GetDegreeInformation()
        {
            Console.WriteLine("Enter the Degree Name");
            string DegreeName = Console.ReadLine();

            Console.WriteLine("Enter the credits Required");
            int        CreditsRequired = Int32.Parse(Console.ReadLine());
            DegreeInfo degree          = new DegreeInfo(DegreeName, CreditsRequired);

            return(degree);
        }