Question: Program this in C++ Imagine you are working for an in-house software team for a company that wants to monitor network access points in a

Program this in C++

Imagine you are working for an in-house software team for a company that wants to monitor network access points in a building. Each building has a specific number of floors, a certain number of rooms per floor, and some number of network access points in a room. Each network access point is labeled with its state as being on or off and if it is on it has the month it was turned on.

Design, implement, and test classes that represent buildings, floors, and network access points. Your classes should provide suitable observer methods that allow you to determine how many floors are in a building, how many rooms are on a floor, how many access points are in a room, and if an access point is on or off and which month it was turned on.

You should also provide mutator methods that allow you to turn network access points on or off and to set the month if it was turned on.

You should use composition as a key strategy in designing these classes-thus, a building should contain floors, floors should contain rooms, and rooms should contain network access points.

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!