Create the classes Property, House and Condo with the enc…

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%.

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational