Year of construction and the property tax

Assignment Help Basic Computer Science
Reference no: EM131953605

1. Suggest a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax. Write the appropriate contructor, selector and mutator methods. Also suggest a toString method to return the details of the house.

2. Suggest a subclass Home with additional instance fields for the name of the occupying family and the date they moved in. You should use the OurDate class we wrote in the class. 

Note the following:

There should be two overloaded constructor methods: 

public Home (int house, String street, String town, String family,
	  	  OurDate movedIn)

and 

public Home (int house, String street, String town, int yearConstructed, int propertyTax, String family, OurDate movedIn)

These should make use of the super keyword where appropriate. 

There should be the usual methods to set and extract the values of the new instance fields:

	setFamily
	getFamily
	setDateMovedIn
	getDateMovedIn

There should be a toString method that calls the toString method provided by the House class to return the details of the house and then return the text "has been occupied by FAMILY since DATE", with suitable values inserted.

You should make the three classes (House, Home, OurDate) part of the package insy.java.hw6.

3. Suggest a simple driver application that prompts the user to enter the appropriate information about a home, creates an instance of the Home class, and then prints out the details of that home. Make sure to use the appropriate import statement(s) to import the above classes

Reference no: EM131953605

Questions Cloud

Evaluate the major consequences of poor communication : Analyze the relationship between communication and resistance. Evaluate the major consequences of poor communication.
How the composers music reflects the culture and time period : Address how the composer's music reflects the culture and/or time period in which he or she lived. Be sure to include links to the videos in your response.
Statement writes the contents of counter : Assuming outFile is a file stream object and counter is a variable, which statement writes the contents of counter to the file associated with outFile?
What is peer learning : What is peer learning? Describe how peer learning could be used in classroom training and in computer or Internet-based training.
Year of construction and the property tax : Suggest a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax.
Nalyze the key ways that segmentation provides advantage : Analyze the key ways that segmentation provides a competitive advantage or disadvantage to the North American automobile.
Evaluate different change management models : Competency: Evaluate different change management models. Gaining an understanding of the various models of leadership theory is critical in order to understand.
Calculate the amount of money that will accumulate : Calculate the amount of money that will accumulate if Leslie leaves the money in the bank for 2?, 6?, and 16 ?year(s).
Percentage increase per year in winner check over preiod : What was the percentage increase per year in the winner’s check over this period?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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