Question: In C++: l.Create class apartment with private data (int m_inumber, int m_ifloor, double m_dArea, int m_iResidents Public functions: I.1. default, constructors-excplicit and copy constructor II.
In C++:
l.Create class apartment with private data (int m_inumber, int m_ifloor, double m_dArea, int m_iResidents
Public functions:
I.1. default, constructors-excplicit and copy constructor
II. Create class BlockManagement. Private : number of floors(m_ifloors), vector with objects (vector
Public functions:
II. 1.constructors: default, excplicit (by vector of apartments), important-don't allow the creation of apartment clones(2 or more apartments with the same number)(exception) ,
II. 2. Calculate the due amount for each apartment number according to the number of people living in it, if it is empty to be charged with m_dExp/2 . Return map
II. 3 Calculate a map for the apartments in the block, returns mulitmap
Main function
1.Creates an object of given street - object from 114-II. Cout the content.
2. To be shown in numerical order all apartments, from lower to higher. Cout the content of the list
3. To be found a list of all empty apartments at the moment
4. To be shown on a new row the data for
5. To be shown all of the income of all apartments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
