Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Student    student    = new Student();
            Grade      grade      = new Grade();
            Department department = new Department();

            Console.WriteLine("Enter First Name: ");
            string firstName = Console.ReadLine();

            Console.WriteLine("Enter Middle Name: ");
            string middleName = Console.ReadLine();

            Console.WriteLine("Enter Last Name: ");
            string lastName = Console.ReadLine();


            string fullName    = student.GetFullName(firstName, middleName, lastName);
            string reverseName = student.GetReverseName(firstName, middleName, lastName);

            Console.WriteLine("Your full name is: " + fullName);
            Console.WriteLine("Your reverse name is: " + reverseName);

            Console.WriteLine("Enter your Marks: ");
            int marks = Convert.ToInt32(Console.ReadLine());

            string gradeName = grade.GetGrade(marks);

            Console.WriteLine("Your Grade is: " + gradeName);

            Console.WriteLine("Enter your Department Name: ");
            string deptName = Console.ReadLine();

            Console.WriteLine("Enter your Department Teacher: ");
            string deptTeacher = Console.ReadLine();

            department.DepartmentName = deptName;
            department.TeachersName   = deptTeacher;

            Console.WriteLine("Your Department Name is: " + deptName);
            Console.WriteLine("Your Department Teacher is: " + deptTeacher);
        }