Skip to content

Workshop 09 ‐ University Management System (ASSESSED)

Atanbori edited this page Dec 4, 2025 · 4 revisions

CMP9133 - Workshop 9

University of Lincoln

School of Engineering and Physical Sciences

CMP9133 – Programming Principles

Landing page

Join workshop 9 at the dedicated LINK 💻

Task (Assessed): University Management System

Design a University Management System that models the hierarchy of students, faculty, and staff. Implement the system using classes and demonstrate the use of inheritance, polymorphism, and memory management techniques. Instructions:

  1. Create a base class Person with private attributes:

    • std::string name
    • int age

    Implement public member functions for getting and setting the name and age.

  2. Derive a class Student from the Person class, with additional private attributes:

    • std::string studentId
    • double gpa

    Implement public member functions for getting and setting the student ID and GPA.

  3. Derive a class Faculty from the Person class, with additional private attributes:

    • std::string facultyId
    • std::string department

    Implement public member functions for getting and setting the faculty ID and department.

  4. Derive a class Staff from the Person class, with an additional private attribute:

    • std::string staffId

    Implement public member functions for getting and setting the staff ID.

355129219-05c3ed4c-278e-4720-8d30-f5c6ae9eeb47

Clone this wiki locally