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 m_vColl; Adress - string m-strAdress, price for living costs for one member of the block - double m_dExp;)

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 with the help of II.4 and II.5

5. To be shown all of the income of all apartments

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!