Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Design a health and safety policy.

Answered: 1 week ago