ABC Company helps its clients to find a quick and easy analysis for better investment decisions. It would like to include the ways to calculate the evaluated price and investment analysis for the two types of property, ‘Condo’ and ‘single-family home (SFHome). Implement the class property based on the following specification. The class has -  Instance variables: ▪  address that holds the address of the property and is of type string. ▪  ZoneCode which is an integer indicating the zone of the property. (possible values 1, 2, and 3) ▪  NoOfBedrooms that holds the number of bedrooms in the property. ▪  YearofConstruction an integer to hold the year of construction ▪  RiskFactor which is a float number in the range(0.0,1.0) for the risks related to investments in real estate market. ▪  Type indicates if the type of the property is a Condo or a SFHome. -  At least three constructors, a default constructor, a parametrized constructor (which will accept enough parameters to initialize all the attributes of the created object from this class), and a copy constructor. Note (for implementing part b and c of Question 1): An object creation using the default constructor must trigger the default constructor of its ancestor classes, while creation using parametrized constructors must trigger the parametrized constructors of the ancestors. -  Accessor and Mutator methods o IntheaccessormethodstosettheriskFactorandzonecode,checkthevalue/range,ifthey are not valid, display appropriate message and exit the system. - toString and equals methods: o Note1: toString method must return clear description and information of the object (display each attribute of the object in a separate line) o Note2: You are always overriding these methods in the derived classes that you need to implement in part b and part c of this question) - AnalyzeInvestment that returns as a double the value computed for the property investment analysis. - EvaluatePrice that returns as a double the price calculated based on the given input data. AnalyzeInvestment and EvaluatePrice are calculated according to the following formulas:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

PLZ help with the following: In JAVA

ABC Company helps its clients to find a quick and easy analysis for better investment decisions.

It would like to include the ways to calculate the evaluated price and investment analysis for the two types of property, ‘Condo’ and ‘single-family home (SFHome).

Implement the class property based on the following specification. The class has

    • -  Instance variables:

      • ▪  address that holds the address of the property and is of type string.

      • ▪  ZoneCode which is an integer indicating the zone of the property. (possible

        values 1, 2, and 3)

      • ▪  NoOfBedrooms that holds the number of bedrooms in the property.

      • ▪  YearofConstruction an integer to hold the year of construction

      • ▪  RiskFactor which is a float number in the range(0.0,1.0) for the risks

        related to investments in real estate market.

      • ▪  Type indicates if the type of the property is a Condo or a SFHome.

    • -  At least three constructors, a default constructor, a parametrized constructor (which will accept enough parameters to initialize all the attributes of the created object from this class), and a copy constructor.
      Note (for implementing part b and c of Question 1): An object creation using the default constructor must trigger the default constructor of its ancestor classes, while creation using parametrized constructors must trigger the parametrized constructors of the ancestors.

    • -  Accessor and Mutator methods
      o IntheaccessormethodstosettheriskFactorandzonecode,checkthevalue/range,ifthey

      are not valid, display appropriate message and exit the system.

- toString and equals methods:
o Note1: toString method must return clear description and information of the object

(display each attribute of the object in a separate line)
o Note2: You are always overriding these methods in the derived classes that you need to

implement in part b and part c of this question)
- AnalyzeInvestment that returns as a double the value computed for the property

investment analysis.
- EvaluatePrice that returns as a double the price calculated based on the given input

data.
AnalyzeInvestment and EvaluatePrice are calculated according to the following formulas:

 

Туре: Сondo
Туре: SFHome
ZoneCode
Base_price
ZoneCode
Base_price
1
300000
1
500000
2
200000
2
400000
3
100000
3
300000
EvaluatePrice
Base_price + (5% * Base_price * NoOfBedrooms) +
(YearofConstruction * 100)/2
AnalyzeInvestment= RiskFactor * 50
Write a main method to test your class.
Transcribed Image Text:Туре: Сondo Туре: SFHome ZoneCode Base_price ZoneCode Base_price 1 300000 1 500000 2 200000 2 400000 3 100000 3 300000 EvaluatePrice Base_price + (5% * Base_price * NoOfBedrooms) + (YearofConstruction * 100)/2 AnalyzeInvestment= RiskFactor * 50 Write a main method to test your class.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY