HELP 1 MAIN OBJECTIVE The goal of this homework is to design
HELP!!!!!!!!!!!!!!!!!
1. MAIN OBJECTIVE
The goal of this homework is to design and implement a university administration system in C++.
The system consists of classes of these types:
Person (Student, Teacher)
Student (B.Sc., M.Sc., Ph.D., ...)
Teacher (lecturer, adjunct, professor, ...),
Course.
Department.
You can have additional classes if required.
2. DESCRIPTION
The system should have these relationships included:
A Person should have the basic information of a person like: university ID, name, birth
date, and gender.
A student can be an undergraduate or graduate student.
A student can enroll in a course.
A graduate student can be a teaching assistant or research assistant.
A teaching assistant can be assigned to a course.
A teacher can be a lecturer, adjunct or professor.
A teacher can be assigned to a course.
Courses can be from undergraduate or graduate level.
Courses should include the grades of all students enrolled in the class.
Each teacher, student or course is assigned to a department.
3. TEST PROGRAM
The program should be tested using auxiliary files.
Teachers.txt
Students.txt
Courses.txt
Departments.txt
Each file should contain instances of the classes in the project.
The input to the system is obtained by reading these text files.
Each file should include enough instances to completely test the system’s flow of events:
• Display information about Teachers
• Display information about Students
• Display information about Courses
• Display information about Departments
must use concepts like
Inheritance,
Polymorphism,
Composition,
C++ structures, etc.
Solution
*Answer for Question 1:
class Person{
public:
int universityID
char name[30];
char birthDate[10];
char gender[6];
}
class Student: public Person{
public:
char qualification[30]; //graduate or undergraduate
char grade[30];
Course course;
Department department;
}
class Teacher:public Person{
public:
char designation[30]; //lecturer, adjunct or professor
Course course;
Department department;
}
class Course{
public:
char name[30]; //B.Sc, M.Sc, Ph.D
char level[30]; //graduate or undergraduate
Department department;
Student student[100];
}
class Department{
public:
char name[30]; //Department name
}

