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%.
Thank you. I will get back to you next week. There are more classes that I need help.
Client #23605
Verified order
Thanks a lot. All good
Client #0
Verified order
I loved the service it was really fast & efficient. I ended up with an A in my class!
Client #0
Verified order
It was a pleasure working with you. You are really responsible and always do you’re best and of course, we will keep working together.
Client #23592
Verified order
The essay and the Excel file looks good. Thank you for working with me throughout the project.
Client #23592
Verified order
Thank you for the quick help. I was stuck.
Client #23594
Verified order
You are a lifesaver. Thank you. I will be needing your help for the midterm exam.
Client #23594
Verified order
I am very grateful for your help. Without you, I would have quit a long time ago. Appreciate your help 100%.
Client #23599
Verified order
I know it is APA 7 and it should not have the running headers, but my professor insists on them. Please include them in the upcoming orders. Overall, I liked it and I will be submitting it tonight. Thank you.
Client #23596
Verified order
Thank you for the help. All good.
Client #23595
Verified order
You do an exceptional job, have gotten good grades n positive feedback/ comments from my professors since you started helping me.
Share all the assignment information. Including the instructions, provided reading materials, grading rubric, number of pages, the required formatting, deadline, and your academic level. Provide any information and announcements shared by the professor. Choose your preferred writer if you have one.
Get Your Order Assigned
Once we receive your order form, we will select the best writer from our pool of experts to fit your assignment.
Share More Data if Needed
You will receive a confirmation email when a writer has been assigned your task. The writer may contact you if they need any additional information or clarifications regarding your task
Let Our Essay Writer Do Their Job
Once you entrust us with your academic task, our skilled writers embark on creating your paper entirely from the ground up. Through rigorous research and unwavering commitment to your guidelines, our experts meticulously craft every aspect of your paper. Our process ensures that your essay is not only original but also aligned with your specific requirements, making certain that the final piece surpasses your expectations.
Quality Checks and Proofreading
Upon the completion of your paper, it undergoes a meticulous review by our dedicated Quality and Proofreading department. This crucial step ensures not only the originality of the content but also its alignment with the highest academic standards. Our seasoned experts conduct thorough checks, meticulously examining every facet of your paper, including grammar, structure, coherence, and proper citation. This comprehensive review process guarantees that the final product you receive not only meets our stringent quality benchmarks but also reflects your dedication to academic excellence.
Review and Download the Final Draft
If you find that any part of the paper does not meet the initial instructions, send it back to us with your feedback, and we will make the necessary adjustments.