Beispiel #1
0
        public static void printALLInfo(Dictionary <int, Teachers> teacherlist, Dictionary <int, Students> studentlist)
        {
            Console.WriteLine("\n\nHere is a list of all the teachers and the information we have on them: ");

            Teachers x = new Teachers();

            foreach (KeyValuePair <int, Teachers> entry in teacherlist)
            {
                x = entry.Value;
                Console.WriteLine("Teacher name: " + x.getName() + ", Employee ID: " + x.getEmployeeID() + ", Salary: " + x.getSalary() + ", Vacation days: " + x.getVcnDays());
            }

            Students s = new Students();

            foreach (KeyValuePair <int, Students> entry in studentlist)
            {
                s = entry.Value;
                Console.WriteLine("Student name: " + s.getName() + ", Student ID: " + s.getID() + ", Fees Owed: " + s.getNum() + ", Average: " + s.getGrade());
            }
        }
Beispiel #2
0
        public void addTeacher(Teachers Teach)
        {
            int tempID = Teach.getEmployeeID();

            schoolTeachers.Add(tempID, Teach);
        }