Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Define a performance management system.

Answered: 1 week ago