Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help Everything must be included in a py file and handed in, Please name youe py files in this format, - 10000000x. Firstname_Lastriame_exi py.

please help image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Everything must be included in a py file and handed in, Please name youe py files in this format, - "10000000x. Firstname_Lastriame_exi py". The py tile must have your name and student number commented on at the top. Code the program below. All programs must contain and use a main function. Create a program that contains the three classes as follows, along with theie respective data: Dweiling House Apartment - House and Apartment should inherit from the Dwelling class and implement their own init_ method that calls said class on creation. - Each print Datal method should be owerridden to include the class' respective variables (i.e. the House class should also print out the address and mamorfloors) - Each _.str._0 method should be overridden to return (not print) the data as a formatted string when the object is called as a string - get dwelling typed should retarn the type of dwelling thouse/apartment) Create two objects, one of type House and one of type Apartment. Call all of their functions. Adoress:1911 Simcoe St NumberOfFloors: 4 Dwelling Type:House Value:800 Rooms: 100 Address:1911 Simcoe St NumberOfFloons4 Apartment use printlapartment.get,dwellingType0) Dwelling Type Apartment use apartment. printData0 Value:500 Rooms:1 Address: 100 York St ApartmentNumber:3087 Dwelling Type:Apartment use print(apartment) Value:500 Rooms:1 Address: 100 York St ApartmentNumber:3087

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Icdt 88 2nd International Conference On Database Theory Bruges Belgium August 31 September 2 1988 Proceedings Lncs 326

Authors: Marc Gyssens ,Jan Paredaens ,Dirk Van Gucht

1st Edition

3540501711, 978-3540501718

Students also viewed these Databases questions

Question

Why is the concept of a canonical ensemble required?

Answered: 1 week ago