Question: Write a method that computes the commission, using the scheme in Programming Exercise 5.39 . The header of the method is as follows:public static double?computeCommission(double?salesAmount)Write

Write a method that computes the commission, using the scheme in Programming Exercise 5.39. The header of the method is as follows:public static double?computeCommission(double?salesAmount)Write a test program that displays the following table:Sales Amount .............Commission10000 ..................................900.015000 ................................1500.0...95000 .............................11100.0100000 ...........................11700.0

You have just started a sales job in a department store. Your

You have just started a sales job in a department store. Your pay consists of a base salary and a commission. The base salary is $5,000. The scheme shown below is used to determine the commission rate. Sales Amount Commission Rate 8 percent $0.01-$5,000 10 percent $5,000.01-$10,000 $10,000.01 and above95000 12 percent Note that this is a graduated rate. The rate for the first $5,000 is at 8%, the next $5000 is at 10%, and the rest is at 12%. If the sales amount is 25,000, the commission is 5,000 * 8% + 5,000 * 10% + 15,000 * 12% = 2,700. Your goal is to earn $30,000 a year. Write a program that finds the minimum sales you have to generate in order to make $30,000.

Step by Step Solution

3.47 Rating (176 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program Plan 1 Create a class ComputeCommissions 2 Declare and Initialize the variables final double FINALSALESAMOUNT100000 Final Sales amount used to ... View full answer

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 Java Programming Questions!