Implement a real estate presentation center

Assignment Help Basic Computer Science
Reference no: EM13752970

Problem:
Write programs to implement a Real Estate Presentation Center that shows no more than 50 houses.

Your Task:
1. Create a class called "House" that includes
a) Private attributes: "houseID","price","size","address"
b) A constructor that sets all attributes
c) A method called "changePrice"that changes the price of the house.
d) A method called "pricePerSqft"that returns the house price for each square foot.
e) A method called "toString" that shows the houseID, price, size and the address in a
single line.

2. Create a class called "TownHouse"that is a subclass of "House". Your class should include the following.
a) An additional private attribute: MonthlyMaintenanceFee
b) A constructor that sets all attributes.
c) A method called "toString" that returns a String that shows the houseID, price,
size, address and MonthlyMaintenanceFee in a single line.

3. Create a class called "RealEstatePresentationCenter" that can be used to store, change and show the housing information. Your class should include the following.
a) Private attributes"listingHouses"and "houseCount"
b) A contractor
c) A method called "addHouse"that adds a house to "listingHouses".
d) A method called "getLowestPricePerSqft" that returns a String that represents
the information of the house with the lowest price for each square foot in the
presentation center.
e) A method called "averageHousePrice" that returns the average house prices.
f) A method called "showAllHouses" that takes returns the information of all
houses in the presentation center.

4. Create a class called "RealEstateTest.java"that tests House.java, TownHouse.java, and RealEstatePresentationCenter.java. You should add several houses and townhouses to the listinghouses, change house prices and test the other methods you implemented. 

Reference no: EM13752970

Questions Cloud

What advice would you give john regarding this transaction : Roth IRA's are popular deferred compensation plans because they offer tax- free distributions. As a tax preparer or CPA, you will have clients who turn to you for retirement advice. You need to know how to conduct the necessary research to give your ..
What motivated cromwells political and military actions : What motivated Cromwell's political and military actions? What was Edmund Ludlow's criticism of Cromwell, and how did Cromwell respond?
Prepare a multiple-step income statement : Accounts payable 60,000. The amount of income taxes applicable to ordinary income was $56,700, excluding the tax effect of the earthquake loss, which amounted to $24,000. Instructions: Prepare a multiple-step income statement.
Saving money at the cost of the environment : All types of industries; whether big or small generate hazardous wastes. But there are some companies which try to get rid of their dangerous waste by simply dumping it illegally. All for saving money at the cost of the environment.
Implement a real estate presentation center : Write programs to implement a Real Estate Presentation Center that shows no more than 50 houses.Your Task:1. Create a class called "House" that includesa) Private attributes: "houseID","price","size","address"b) A constructor that sets all attributes
Identify an internal control method : Information technology can greatly enhance the processing of transactions and distribution of output from AIS. For the Revenue, Expenditure, and Human Resources / Payroll cycles, identify at least three specific ways (tools) that information technolo..
Explain the components of conducting external analysis : Explain the process and components of conducting External Analysis. What are the sources that you will use for conducting External Analysis? List 5-10 sources
Medium-sized software house : Martin Adams, an experienced project leader at David's Software Ltd., a medium-sized software house, has been appointed project leader for the development of an advanced help desk software system for a leading home appliance maintenance service. This..
Manufacturing cost of goods sold is anticipated : Flip manufactures footballs. The forecasted income statement for the year before any special orders included sales of $4,000,000 (sales price is $10 per unit.) Manufacturing cost of goods sold is anticipated to be $3,200,000. Selling expenses are exp..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Discuss any two major security flaws in us or anywhere

Discuss any two major security flaws in US or anywhere, one of which is a violation of Integrity, while the other is a violation of Confidentiality, with clear explain.

  Explaining multiple-level total

Whch of the following is an example of a multiple-level total? A total shown at the end of report for number of books in a library or Total shown every time the type of book changes (for example, reference, fiction, nonfiction).

  Considerations and network device security

Cnonsiderations and Network Device Security

  How do you create an applet with a button labeled

How do you create an applet with a button labeled "Who's the greatest?" When the user clicks the button, display your name in large font.

  What window events can a program handle

What window events can a program handle? Explain the difference between the WindowListener interface and the WindowAdapter.

  Write a function prototype for a function

Write a complete function called calcTriArea that will calculate and return the area of a triangle. It takes two float/double values: the base and height as its arguments. The area of a triangle is one-half the base times the height.

  Draw the block diagram for the hardware

Draw the block diagram for the hardware that implements the following: y + xz: AR ß BR + CR where AR, BR and CR are n-bit registers and x, y, and z are control variables.

  Write a method named longestsortedsequence

Write a method named longestSortedSequence that accepts an array of integers as a parameter and that returns the length of the longest sorted (nondecreasing) sequence of integers in the array.

  Internet bubble history research paper

Mini Research Paper: Internet Bubble History Research Paper

  Three clusters using k-means clustering

Partition this given integer set into three clusters using K-means clustering

  Recognize ten different areas where software helps

In spreadsheet, recognize at least 10 different areas where software could help you, like collecting rent, performing tenant background checks, and scheduling building maintenance.

  What does it mean if they are public or private

When creating classes you have member functions and member variables. What are they and what data types can you use for member variables

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd