subject

Write a class house that represents a house. it should contain instance data: house number, street, town, year when the house was built. define house’s constructor to accept and initialize all instance data. include getter (accessor) and setter (mutator) methods for all instance data. provide a tostring method that returns one line description of the house as string. provide method ishistoric() that returns a boolean indicating if the house was older than 50 from now or not. create a testhouse class with main method in it. within main method instantiate three house objects of your choice. at least one home should be historic. for each object invoke methods tostring and ishistoric, and also invoke different pair of getter and setter methods. provide appropriate print statements to explain the result of each invoked method to user.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
You know the right answer?
Write a class house that represents a house. it should contain instance data: house number, street,...
Questions
question
Mathematics, 18.10.2020 20:01
question
Biology, 18.10.2020 20:01
question
Health, 18.10.2020 20:01
question
Mathematics, 18.10.2020 20:01
question
Physics, 18.10.2020 20:01
question
Mathematics, 18.10.2020 20:01
question
Mathematics, 18.10.2020 20:01
Questions on the website: 13722362