Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Q.2.4 When the Process Report menu item is clicked, capture the selected agent location, estate agent name, property price, and...Question
Q.2.4 When the Process Report menu item is clicked, capture the selected agent location,
estate agent name, property price, and commission percentage, and display the estate
agent report. The commission is calculated by multiplying the property price by the
commission percentage.Q.2.5 When the Save Report menu item is clicked, save the estate agent report to a text file
named report.txt.Q.2.6 When clicking the Clear Menu item, set the text fields and text area to the default
state.
Q.2.7 Make use of a class named EstateAgent that contains methods to calculate the estate
agent commission and validate the data. Only valid data should be captured in the
application; the validation rules are:
VALIDATION RULE
Agent Location It cannot be empty.
Agent Name It cannot be empty.
Property Price Cannot be less than or equal to zero (0)
Commission Percentage Cannot be less than or equal to zero (0)
The EstateAgent class must implement an IEstateAgent interface that contains the
following:
public interface IEstateAgent {
double CalculateCommission(String propertyPrice, String agentCommission);
boolean ValidateData(Data dataToValidate);..IN JAVA
include import method
estate agent name, property price, and commission percentage, and display the estate
agent report. The commission is calculated by multiplying the property price by the
commission percentage.Q.2.5 When the Save Report menu item is clicked, save the estate agent report to a text file
named report.txt.Q.2.6 When clicking the Clear Menu item, set the text fields and text area to the default
state.
Q.2.7 Make use of a class named EstateAgent that contains methods to calculate the estate
agent commission and validate the data. Only valid data should be captured in the
application; the validation rules are:
VALIDATION RULE
Agent Location It cannot be empty.
Agent Name It cannot be empty.
Property Price Cannot be less than or equal to zero (0)
Commission Percentage Cannot be less than or equal to zero (0)
The EstateAgent class must implement an IEstateAgent interface that contains the
following:
public interface IEstateAgent {
double CalculateCommission(String propertyPrice, String agentCommission);
boolean ValidateData(Data dataToValidate);..IN JAVA
include import method
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.