Question: C++ In this lab, you will design aggregate classes to record personal and academic information about instructors at a university. The classes are: Instructor ,

C++

In this lab, you will design aggregate classes to record personal and academic information about instructors at a university. The classes are: Instructor, and Course. All class attributes must be private and accessed through public member functions.

The attributes of each class are summarized below:

Instructor class contains personal and academic information. You may assume every instructor teaches 3 courses. Instructor class has the following private attributes:

string firstName

string lastName char gender (M for Male and F for Female)

long empoyeeID

string officeNum

Course courses[3]

Course class contains individual course information and has the following private attributes:

long courseNumber string courseName

int numberOfCredits

For each class, you need to write:

- a set function to set the attribute values

- a print function to display the attribute values.

After you design your classes, write a main program that

- instantiates an instructor object (using the default constructor),

- calls set function to set the objects attributes to the following:

Michelle James F 2390878 SBSB3024 24540 CS111 3 24541 CS111 1 22275 CS351 3

- calls the print function to display the objects data.

Note: You must divide your files into .cpp and .h file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!