Write the definition of a class METROPOLIS in C+ + with following description :
Private Members
- MCode //Data member for
Code (an integer)
- MName //Data member for
Name (a string)
- MPop //Data member for
Population (a long int)
- Area //Data member for
Area Coverage (a float)
- PopDens //Data member for
Population Density (a float)
- CaldenO //A member function
to calculate.........
//Density as PopDens/Area
Public Members
- Ender () //A function to
allow user to enter values of
//MCode, MName, MPop, Area and call claDen () //function
- viewall //A function to
display all the data members
//also display a message "Highly Populated Area"
//if the Density is more than 12000