Question: In Java Language: A sales person gets a base salary of $200. They also get 3% of any sales between 500 and $1000 and 5%
In Java Language: A sales person gets a base salary of $200. They also get 3% of any sales between 500 and $1000 and 5% of any sales over $1000 and under $3000 and 8% of anything $3000 or over. Write a driver program named Commission.java that takes in the amount of sales as input and outputs the total amount earned (the base salary plus commission). Make certain the output looks like money. Include a sentinel controlled loop that ends when you type in -999 for the sales. Also keep track of the total amount of money for all salespeople and how many total sales people there are (a counter and an accumulator).
NOTE: this is calculated like income tax is in the US. If a person sell $700, they get zero on the first 500 and 3% of the next 200 or $6.00 commission for a total salary of $206.00. If they sell $2500, they get zero on the first $500, 3% of the next 500, and 5% of anything over $1000.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
