Design a console application that will print an estate agent property sale commission report. Use an...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
EstateAgentjava public abstract class EstateAgent implements iEstateAgent data members private Strin... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Jakob has gone into a bookstore to purchase the best selling book for a birthday gift for a friend. The bookstore does not have the book in stock. What is a likely effect on the bookstore? S
-
Design a console application that will print the cell phone bill of a customer. Make use of an abstract class named Cell that contains variables to store the customer name, talk time and price per...
-
Design a console application that will print the cell phone bill of a customer. Make use of an abstract class named Cell that contains variables to store the customer name, talk time and price per...
-
A 10.231-g sample of window cleaner containing ammonia was diluted with 39.466 g of water. Then 4.373 g of solution were titrated with 14.22 mL of 0.1063 M HCl to reach a bromocresol green end point....
-
A right circular cone can be balanced on a horizontal surface in three different ways. Sketch these three equilibrium configurations, and identify them as positions of stable, unstable, or neutral...
-
Why do you think that Benton should install an ERP?
-
Show that if the moment \(\overline{u^{n} v^{m}}\), if it exists, can be found from the joint characteristic function \(\mathbf{M}\left(\omega_{U}, \omega_{V} ight)\) by the formula \[...
-
The following information is available for the Johnson Corporation for 2011: Required: Applying both a perpetual and a periodic inventory system, prepare the journal entries that summarize the...
-
Problem #5: Using the method of joints, determine the force in each member. State whether each member is in compression or tension. If the largest force each member can support is 4kN tension and 3kN...
-
Kitchen World Inc. is a Canadian controlled private corporation (CCPC) that operates a retail business selling cooking utensils, knives and small appliances for both professional chefs and home...
-
Let X be the percent of seven-letter words that have "n" as the sixth letter. Let Y be the percent of seven-letter words that end in "ing". Based on class material, explain how most people tend to...
-
1. Imagine you are the senior manager of a marketing department and notice that your employees sometimes arrive on time, but sometimes arrive late at work. You decide to use the principles from...
-
In Exhibit 13-4, the makers of Healthy Hands Lotion discovered that the lotion can cause skin reactions, but it doesn't inform the buyers. While the market experiences imperfect information, the...
-
How do you post the closing entries to the T accounts provided below? Post the closing entries to the T accounts. If there is more than one closing entry for an account, enter in the order given in...
-
1. Determine the term "culture." Describe one analytical framework that may be used to measure and analyze the culture of a society. 2. Religion is an element of culture. How does the religion of...
-
One of the first marketing plans you will develop will be to market your personal brand. A personal brand is how you want to be seen. It will reflect your personality, your skills, and your...
-
What is Magnetic Declination?
-
Distinguish among total-moisture content, free-moisture content, equilibrium-moisture content, unbound moisture, and bound moisture.
-
Under what circumstances would you advise a not-for-profit organization to use fund accounting?
-
Below are a series of transactions which are independent of each other. (a) A government makes a $10-million loan to a manufacturer, repayable in 5 years with an interest rate of 2%. Current...
-
On January 1, 2011, Prado acquired 80% of the share capital of Lalli for $198,000. At this date, the equity of Lalli consisted of: Share capital .........$150,000 Retained earnings....... 50,000 At...
-
What is the quick (acid test) ratio? A. 0.9 B. 4.8 C. 0.8 D. 0.2 E. 1.7 Using the following balance sheet and income statement Balance sheet m Property 200 Trade payables Plant and equipment 300 Tax...
-
What is the receivables holding period? A. 21.6 days. B. 8 times. C. 19.4 days. D. 4.7 times. E. 28.2 days. Using the following balance sheet and income statement Balance sheet m Property 200 Trade...
-
The most appropriate measure of profitability from the point of view of the shareholders is: A. Return on equity. B. Return on capital employed. C. Return on non-current assets. D. Profit on sales.
Study smarter with the SolutionInn App