Question: Using c++ Please create two classes: Course and Classroom . Each class should have one header file (class declaration) and one cpp file (member method

Using c++

Please create two classes: Course and Classroom. Each class should have one header file (class declaration) and one cpp file (member method definitions).

1. For Course Class,

Member variables

string courseName

string courseDescription

Classroom classroom //Note, this is object composition

Member methods

constructor(s)

accessors and mutators

2. For Classroom class

member variables

int classroomNumber // eg: 608

string buildingName //eg: Whiteman

Member methods

constructor(s)

accessors and mutators

3. Client Code

Please create at least one Course object and display its name, description, classroom number and building name.

Extra Credits (2 points)

Making buildingName in Classroom class an enum datatype, say enum BuildingName. The values in BuildingName are {CONKLIN, GLEESON, GREENLEY, WHITMAN}

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!