Java Case Study Calculating Sales Commission

Java Case Study Calculating Sales Commission

Here’s a case study using Java create a program with the data below. Java Case Study Calculating Sales Commission

Baz’s Computer Shack is a retail seller of computers. Baz’s sales staff works strictly on commission. At the end of the month, each salesperson’s commission is calculated according to Table below.

Java Case Study Calculating Sales Commission
Java Case Study Calculating Sales Commission

Sales This Month Commission Rate

less than $10,000 4%
$10,000–14,999 9%
$15,000–17,999 10%
$18,000–21,999 11%
$22,000 or more 12%
For example, a salesperson with $15,200 in monthly sales will earn a 10% commission ($1,520). Another salesperson with $19,000 in monthly sales will earn a 11% commission ($2,090).
Baz allows each employee to take up to $1,500 per month in advance. When sales commissions are calculated, the amount of each employee’s advanced pay is subtracted from the commission. If any salesperson’s commissions are less than the amount of their advance, they must reimburse him for the difference.

Program Design

The program must perform the following general steps:
1. Ask the user to enter the salesperson’s monthly sales.
2. Ask the user to enter the amount of advanced pay.
3. Use the amount of monthly sales to determine the commission rate.
4. Calculate the commission.
5. Calculate the salesperson’s pay by subtracting the amount of advanced pay from the commission. If the amount is negative, the salesperson must reimburse the company.

Here is an example document to help youJavaCSO

You can purchase Gaddis’ Java book here. Some of the earlier eds are lower in price.

User Avatar

Gary Black

Graduated with Masters's degree in Science. My majors included technology and human environments.
I write to discover what I know.
Follow your dreams or someone will make you work for theirs.

Add comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My Virtual Classes

My Virtual Classes

Categories

Archives

Your Header Sidebar area is currently empty. Hurry up and add some widgets.