Question: Java code Hal's Home computer Emporium is a retail seller of personal computers. Hal's sales staff works strictly on commission. At the end of the

Java code

Hal's Home computer Emporium is a retail seller of personal computers. Hal's sales staff works strictly on commission. At the end of the month, each salesperson's commission is calculated based on 14% of total sales. For example, if a salesperson with $20,000 in monthly sales will earn $2,800.

Your job is to create a class commission that calculates the commission of each salesperson. Your commission class should have constructor, getSale, setSale, and commissionCalculation methods. Your constructor will receive initial values once an object is created. Your output should be well formatted. The dollar amount should allow two decimal places, and the commission rate should be represented as a percent.

Your output should look like the following:

Sample Run:

Enter sales amount: 20000

Commission Report

----------------------

Sales Amount: $20,000.00

Commission Rate: 14%

Commission Amount: $2,800.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!