Question:
Write a class CITY in Python with following specifications
Instance Attributes
- Code # Numeric value
- Name # String value
- Pop # Numeric value for Population
- KM # Numeric value
- Density # Numeric value for Population Density
Methods:
- CalDen() # Method to calculate Density as Pop/KM
- Record() # Method to allow user to enter values
Code,Name,Pop,KM and call CalDen() method
- See() # Method to display all the members also display
a message "Highly Populated Area"
if the Density is more than 12000.
C. Sir| Created: 12-Jan-2019 | Updated: 12-Jan-2019|CBSE12D-2016
