Computer Science, asked by Athenaxnikhil, 7 months ago

Write a class CITY in Python with following specification:
• Code #Numeric Value
• Name #String Value
• KM #Numeric Value
• Density #Numeric Value for Population Density.

Methods:
• CalDen() #Methos to calculate Density of Pop/KM.
• Record () #Method to allow user to enter values Code,Name,Pop,KM and call,CalDen() method.
• See() #Method to display all the date memebers also display a message "Highly Populated Area" is the Density is more than 12000.


Please Answer it's really important ❣️​

Answers

Answered by divyanshZe
2

Answer:

print('city')

pop= int(input('what is the population of the city' ))

if pop == 12000 :

print ('this is a city of high density')

elif pop > 12000 :

print ('this is a city of high density')

else:

print ('this city is not densly populated')

Similar questions