Question: please write a java code. Design a console application that will print an estate agent property sale commission report. Use an abstract class named EstateAgent

please write a java code. Design a console application that will print
an estate agent property sale commission
report. Use an abstract class named
EstateAgent 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 EstateAgent
class must implement an iEstateAgent
interface that contains the following:
public interface iEstateAgent
{
String getAgentName();
double getPropertyPrice();
double getAgentCommission();
}
Create a subclass called EstateAgentSales
that extends the EstateAgent class. The
EstateAgentSales class must contain a
constructor to accept the estate agent name
and the property sale amount as
parameters. Write code for the
printPropertyReport method, which prints
the estate agent name, property sale price
and the estate agent commission amount.
Finally, write a RunApplication class to
instantiate the EstateAgentSales class.
Sample output is shown below, and you may
use the same values to test your application.
please write a java code. Design a console

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!