Question: Design a console application that will print an estate agent property sale commission report. Use an abstract class named Estate Agent that contains variables

Design a console application that will print an estate agent property sale commission report. Use an abstract

Design a console application that will print an estate agent property sale commission report. Use an abstract class named Estate Agent that contains variables to store the estate agent's name and property price. Create a constructor accepting the estate agent's name and property price as parameters. In this class, also create get methods to get the estate agent name, property price and estate agent commission. The agent commission is calculated at 20% of the property sale price. The Estate Agent class must implement an iEstate Agent interface that contains the following: public interface iEstate Agent { } String getAgentName(); double getPropertyPrice(); double getAgent Commission(); Create a subclass called Estate AgentSales that extends the Estate Agent class. The Estate AgentSales class must contain a constructor to accept the estate agent name and the property sale amount as parameters. Write code for the printProperty Report method, which prints the estate agent name, property sale price and the estate ag commission amount. Finally, write a RunApplication class to instantiate the Estate AgentSales class. Sample output is shown below, and you may use the same values to test your application. Sample screenshot Enter the current estate agent name: Joe Bloggs Enter the property price: 1200000 ESTATE AGENT REPORT ******kkkkkkkkkkkkk ESTATE AGENT NAME: Joe Bloggs PROPERTY PRICE: R 1200000.0 AGENT COMMISSION: R 240000.0

Step by Step Solution

3.50 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

EstateAgentjava public abstract class EstateAgent implements iEstateAgent data members private Strin... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!