コード例 #1
0
ファイル: Program.cs プロジェクト: mcmejorado/IT-1050
        static void Main(string[] args)
        {
            Instructor John = new Instructor("John", "English");
            Instructor Mike = new Instructor("Mike", "Math");

            Student Jane = new Student("Jane", John, 0);
            Student Joe = new Student("Joe", John, 0);
            Student Melissa = new Student("Melissa", Mike, 0);
            Student Matt = new Student("Matt", Mike, 0);

            John.SetStudentGrade(Jane, 95);
            John.SetStudentGrade(Joe,85);
            Mike.SetStudentGrade(Melissa, 90);
            Mike.SetStudentGrade(Matt, 92);

            Utilities.printHeader();

            Jane.Print();
            Joe.Print();
            Melissa.Print();
            Matt.Print();

            Utilities.printFootNote();
                   
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: JBuchanan92/IT1050
        static void Main(string[] args)
        {
            Instructor John = new Instructor();

            John.Name       = "John";
            John.CourseName = "English";

            Instructor Mike = new Instructor();

            Mike.Name       = "Mike";
            Mike.CourseName = "Math";

            Student Jane = new Student();

            Jane.Name    = "Jane";
            Jane.Teacher = John;

            Student Joe = new Student();

            Joe.Name    = "Joe";
            Joe.Teacher = John;

            Student Melissa = new Student();

            Melissa.Name    = "Melissa";
            Melissa.Teacher = Mike;

            Student Matt = new Student();

            Matt.Name    = "Matt";
            Matt.Teacher = Mike;

            John.SetStudentGrade(Jane, 95);
            John.SetStudentGrade(Joe, 85);
            Mike.SetStudentGrade(Melissa, 90);
            Mike.SetStudentGrade(Matt, 92);

            Jane.PrintStudentInfo();
            Joe.PrintStudentInfo();
            Melissa.PrintStudentInfo();
            Matt.PrintStudentInfo();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: Murphy-Joe/IT-1050
        static void Main(string[] args)
        {
            Instructor john = new Instructor("John", "Neeboy", "English");
            Instructor mike = new Instructor("Mike", "Chael", "Math");

            Student jane    = new Student("Jane", "White", john);
            Student joe     = new Student("Joe", "Murphy", john);
            Student melissa = new Student("Melissa", "Green", mike);
            Student matt    = new Student("Matt", "Black", mike);

            john.SetStudentGrade(jane, 95);
            john.SetStudentGrade(joe, 85);
            mike.SetStudentGrade(melissa, 90);
            mike.SetStudentGrade(matt, 92);

            jane.Print();
            joe.Print();
            melissa.Print();
            matt.Print();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: pieisgood4u/IT-1050-master
        static void Main(string[] args)
        {
            Instructor John = new Instructor("John", "Stamos", "English");
            Instructor Mike = new Instructor("Mike", "Rowe", "Math");

            Student Jane = new Student("Jane", "Doe", John);
            Student Joe = new Student("Joe", "Cool", John);
            Student Melissa = new Student("Melissa", "Cannowitz", Mike);
            Student Matt = new Student("Matt", "Carpenter", Mike);

            John.SetStudentGrade(Jane, 95);
            John.SetStudentGrade(Joe, 85);
            Mike.SetStudentGrade(Melissa, 90);

            Mike.SetStudentGrade(Matt, 92);

            Console.WriteLine(Jane.PrintStudentInfo());
            Console.WriteLine(Joe.PrintStudentInfo());
            Console.WriteLine(Melissa.PrintStudentInfo());
            Console.WriteLine(Matt.PrintStudentInfo());

            Console.ReadKey();
        }