Question
Java programming Scenario You have just started a sales job for company COP Inc. Your pay consists of a base salary and a commission. The
Java programming
Scenario
You have just started a sales job for company COP Inc. Your pay consists of a base salary and a commission. The base salary is $5,000 per month. The scheme shown below is used to determine the commission rate.
Sales Amount Commission Rate
--------------------------------------------------------------------
$0.00-$5,000 8%
$5,000.01 - $10,000 10%
$10,000.01- and above 12%
Note that this is a graduated rate, meaning your first $5,000 in sales nets you 8% commission and the next $5,000 you get 10%.
Let's do an example. Say you sold $25,000 in a month. That means you would receive: ($5,000*8%)+($5,000*10%)+($15,000*12%)+$5,000 = ($400) + ($500) + ($1,800) + $5,000 = $7,700.
What about $8,000 in sales? That would be ($5,000 * 8%) + ($3,000 * 10%) + $5,000 = ($400) + ($300) + ($5,000) = $5,700.
Objective
We are going to write a program that performs these calculations and outputs a table of values showing how much money someone will make given an amount of sales that month. You will start with the sales amount $1,000 and increment it by $1,000 up to $20,000 in sales (see the table below for an example output).
You will create a function that looks like the following:
public static double computeIncome(double salesAmount)
Given a sales amount it will calculate the amount of money earned that month. Don't forget to add the base salary of $5,000!
Example Output:
Note: I do not require that your output matches mine (for example tabbed and with $), but the calculations have to be correct!
Submission Submit your source code (java file), not your full project. If you are using Eclipse and having trouble finding your source code, it is usually atStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started