Question: python language please follow the steps and show me the code on the compiler thank you Exercises 2: Given the following class hierarchy, where an

python language
please follow the steps
and show me the code on the compiler
thank you
python language please follow the steps and show me the code on
the compiler thank you Exercises 2: Given the following class hierarchy, where

Exercises 2: Given the following class hierarchy, where an Apartment House and a House are specializations (sub-types) of a Building: Building ApartmentHouse House Knowing that: 1. all buildings have an address (a string) 2. all buildings have a resale price (a number) 3. the apartment houses have a number of apartments (a number) 4. the houses have a swimming pool or not (a boolean) 5. all buildings are taxed by their city as follows: the tax amount for an apartment house is equal to the resale price divided by the number of apartments. (resale price/ a number of apartments) the tax amount for a house is calculated as the resale price divided by 100, plus $100 for houses having a swimming pool. (resale price/100)+ 100 (a) Write these three classes in Python including the constructors and the methods that are necessary to calculate the tax amount to be paid for a building b) write a main function that: prompts the user to enter the number of buildings in the city for each building, prompts the user the enter building type, the address, the resale price and the number of appartements (for apartment buildings) or whether or not it has a swimming pool (for houses) calculate the total amount of the taxes that these buildings will have to pay

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!