Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please give me code in python language 1. Many financial experts advise that property owners should insure their homes or buildings for at least 80

image text in transcribedPlease give me code in python language
1. Many financial experts advise that property owners should insure their homes or buildings for at least 80 percent of the amount it would cost to replace the structure. Write a program that asks the user to enter the replacement cost of a building, then displays the minimum amount of insurance he or she should buy for the property. In order to implement this in OOP, create a class called Insurance with private attribute (property/Data field) called replacementcost with getter setter methods. Write a method called get insurance amt which would determine and return the minimum insurance amount according to the replacement cost of the building. Write an app to create an insurance object with a replacement cost. (This replacement cost can be from the user as input or just assigned value.) Call the method get insurance_amt and display the result 2. A real estate agent can suggest you the type of house you can afford to buy according to your budget Budget 100,000 or less Easy 100,000 to 150,000 150,000 to Two suitesSuper Easy Easy 200,000 Townhouse SingleHome Hard Suite Impossible Hard to Super Easy Easy This application asks the user what the budget is and displays all the suggestions In order to implement this in O0P, Create a class called House with private attribute called budget with the getter setter methods. Create three classes called Suite, Townhouse and SingleHome inheriting House with a public attribute called house_name with getter setter methods and a method called suggestion_result which would return the appropriate phrase according to the budget. For Example: What is your budget?:125000 Suggestions: Suite: Super Easy Townhouse: Easy Single Home: Hard

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

Step: 3

blur-text-image

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago