Create the classes Property, House and Condo with the encapsulated variables shown above. Class Property should have the method toString() which will return a string that displays all the information encapsulated in the class. It also contains the methods getName() and getNrRooms(). Classes House and Condo contain the method calcTax() which produces and returns the property tax. Create class RealEstate, which encapsulates an array of Property objects named “prop” of dimension 10. This array will contain references to both House and Condo objects. Class RealEstate has the following methods: void addHouse(String name, String address, int nrRooms, int nrBath, double tRoom, double tBath); void addCondo(String name, String address, int nrRooms, double sqft, double tsqft); String printReport(); String printAllPropWithTaxesBelow(double am); String printAllPropWithNrRooms(int nr); The method printReport() will return a string that displays the information of all properties. For each property display in separate lines: The owner’s name The address The tax paid calculated POLYMORPHICALLY by method calcTax() (this will impose extra requirements in the way you program class Property). Make sure that the tax is presented as in “$3525.50” (i.e. with $ and two decimals) Create an empty line between properties. Method printAllPropWithTaxesBelow(double am) will produce a similar output as printReport() but only for the properties with taxes below the amount entered as the value of am. Method printAllPropWithNrRooms(int nr) will produce a similar output as printReport() but only for properties with 4 rooms or more. Use the following code for the class REDriver.java: public class REDriver { public static void main(String[] args) { RealEstate app = new RealEstate(); app.addHouse(“Tim Jones”, “24 Main Street”, 5, 3, 800.0, 200.0 ); app.addHouse(“Marc Anthony”, “7 Eleanor Circle”, 4, 2, 750.0, 170.0); app.addCondo(“John Cusack”, “3300 Yonge Street”, 3, 1200.0, 2.5); app.addCondo(“Tom Zhang”, “220 Eglinton Avenue”, 2, 900.5, 3.0); app.addCondo(“Cindy Singh”, “445 Finch Avenue”, 3, 1402.5, 2.7); System.out.println(app.printReport()); System.out.println(“****************************************”); System.out.println(app.printAllPropWithTaxesBelow(3000.0)); System.out.println(“****************************************”); System.out.println(app.printAllPropWithNrRooms(4)); Note: Code which does not compile will receive maximum 10%.
Posted on by admin
Create the classes Property House and Condo with the encapsulated variables shown above.
WHAT OUR CURRENT CUSTOMERS SAY

- Google

- Sitejabber

- Trustpilot
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!

Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.

Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.

Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!


Jermaine Byrant
Nicole Johnson



