Question:
Write a class CITY in Python with following specifications
Instance Attributes
-Ccode # Numeric value
-CName # String value
-Pop # Numeric value for Population
-KM # Numeric value
-Density # Numeric value for Population Density
Methods:
-DenCal() # Method to calculate Density as Pop/KM
-Record() # Method to allow user to enter values
Ccode,CName,Pop,KM and call DenCal() method
-View() # Method to display all the members
also display a message βHighly Populated Cityβ
if the Density is more than 10000
C. Sir| Created: 11-Jan-2019 | Updated: 11-Jan-2019|CBSE12A-2016
