Question: Java question 2 At Realty Plus, agents receive a commission based on the value of the home as shown in the following table: Value sold

Java question 2
Java question 2 At Realty Plus, agents receive a commission based on

At Realty Plus, agents receive a commission based on the value of the home as shown in the following table: Value sold For the first $100,000 For any amount above $100,000 Commission 7% commission 3% commission Write a program to input the listing real estate agents ID, the buying real estate agent's ID and the value of the home sold. Based on the information shown calculate the commission for the sale of the home. The commission is split evenly between the listing agent and buyer agent if their IDs are different; otherwise, if the same agent is both the listing and buying agent he would receive the entire commission. The following are two sample runs, user input is shown in bold underline: Sample Run #1 What is the listing agent's ID: 12344 What is the buying agent's ID: 12344 What is the selling price: 200000 Agent ID Commission 12344 10000.00 Sample Run #2 What is the listing agent's ID: 12542 What is the buying agent's ID: 96852 What is the selling price: 100000 Agent ID Commission 12542 3500.00 96852 3500.00

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 Databases Questions!