Beispiel #1
0
        public void DisplayMarkResult(double average)
        {
            Receiver receiver = new Receiver();

            //Student student = new Student(studentNo, studentName, studentSurname);
            Console.WriteLine("=======================");
            Console.WriteLine("STDNum: \t\t xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
            Console.WriteLine("Name \t\t\t xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
            Console.WriteLine("Surname \t\t cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
            Console.WriteLine("Final Mark \t\t " + average);
            if (average >= 75)
            {
                passWithDistinction.PassWithDistinctionMethod();
            }
            else if (average > 50 && average < 75)
            {
                pass.PassMethod();
            }
            else if (average < 50)
            {
                fail.FailMethod();
            }
        }
Beispiel #2
0
        public void DisplayMarkResult(double average)
        {
            Student student = Student.GetStudent();

            Console.Clear();
            Console.WriteLine("\tStudent Mark Report");
            Console.WriteLine("==============================================");
            Console.WriteLine("STDNum: \t\t " + student.studentNo);
            Console.WriteLine("Name: \t\t\t " + student.studentName);
            Console.WriteLine("Surname: \t\t " + student.studentSurname);
            Console.WriteLine("Final Mark: \t\t " + average + "%");
            if (average >= 75)
            {
                passWithDistinction.PassWithDistinctionMethod();
            }
            else if (average > 50 && average < 75)
            {
                pass.PassMethod();
            }
            else if (average < 50)
            {
                fail.FailMethod();
            }
        }