Requirements For this assignment, you are required to complete two files (dwelling.py and program111.py) provided in the zip named chapter11.zip. The dwelling.py file currently defines a Dwelling class and a subclass named House. This code is working. Your task here is to (Apt and Condo) as described below. The program111.py file creates an instance of house and runs its str method. This also works. Your task in program111.py is to . Start by unzipping the zip file. Examine both files and execute to see how it runs. Class Apt: inherits from Dwelling and requires two more attributes: , a numeric attribute for monthly rent. , a boolean attribute that is True for an apartment that has a terrace or balcony. requires a method to display the status of an Apt instance (all attributes). Code as you see fit. Class Condo: also inherits from Dwelling and requires two additional attributes: , a numeric attribute for the monthly maintenance. , a string attribute listing Condo amenities such as pool, gym, etc. also requires a str method to display the status of a Condo instance (all attributes). Again, code as you wish. In program111.py, create instances of both new subclasses and display their attributes.

In this assignment, you are given two files named dwelling.py and program111.py, which are provided in a zip file called chapter11.zip. The dwelling.py file already defines a class called Dwelling and a subclass called House. Your task is to modify the existing code to create two new subclasses named Apt and Condo.

The Apt class should inherit from the Dwelling class and should have two additional attributes. The first attribute should be a numeric attribute representing the monthly rent of the apartment. The second attribute should be a boolean attribute that indicates whether the apartment has a terrace or balcony. You should also add a method to the Apt class that displays the status of an Apt instance, including all the attributes. You have the freedom to write this method in whatever way you see fit.

The Condo class should also inherit from the Dwelling class and should have two additional attributes. The first attribute should be a numeric attribute representing the monthly maintenance fee for the condominium. The second attribute should be a string attribute listing the amenities of the condominium, such as a pool, gym, etc. Similar to the Apt class, you should add a str method to the Condo class that displays the status of a Condo instance, including all the attributes. Again, you can code this method in any way you prefer.

In the program111.py file, you are required to create instances of both the Apt class and the Condo class. After creating these instances, you should display their attributes by calling the str method for each instance.

To get started with the assignment, you should first unzip the chapter11.zip file and examine both the dwelling.py and program111.py files. Execute the code in these files to see how they currently run and understand their functionality. Then, proceed to modify the code in the dwelling.py file to create the Apt and Condo subclasses and add the required attributes and methods. Finally, modify the program111.py file to create instances of the new subclasses and display their attributes by calling the str method.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer