Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi I need a program modifyed to find commission base on sales with the following

ID: 3550888 • Letter: H

Question

Hi I need a program modifyed to find commission base on sales with the following critrea

A salesperson will continue to earn a fixed salary of $75,000.  The current sales target for every salesperson is $100,000.   The sales incentive will only start when 80% of the sales target is met.

The current commission is %25 of total sales.

  If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor.

The acceleration factor is 1.25.

The application should ask the user to enter annual sales, and it should display the total annual compensation.

The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson

Explanation / Answer

/*

* CommissionMain.java

Sample run:

Enter Employee's name: asdf

Enter amount of sales: 100000

Total Sales Total Compensation

100,000.00 100,000.00

105,000.00 101,250.00

110,000.00 102,500.00

115,000.00 103,750.00

120,000.00 105,000.00

125,000.00 114,062.50

130,000.00 115,625.00

135,000.00 117,187.50

140,000.00 118,750.00

145,000.00 120,312.50

150,000.00 121,875.00


*/


package my.second.java.program;


import java.text.NumberFormat;

import java.util.Locale;

import java.util.Scanner;


public class CommissionMain

{


/** setting fixed salary rate

*

* @param args

*/

public static void main(String[] args) {

NumberFormat currencyFormat;

String name;

double sales;

  

try (Scanner in = new Scanner(System.in)) {

currencyFormat = NumberFormat.getCurrencyInstance(Locale.US);

System.out.print("Enter Employee's name: ");

name = in.nextLine();

System.out.print("Enter amount of sales: ");

sales = in.nextDouble();

}


double end = sales * 1.5;

System.out.println("Total Sales Total Compensation");

while (sales <= end)

{

CommissionCalculator obj = new CommissionCalculator(sales);

obj.calcCommission();

System.out.printf("%,.2f %,.2f ", sales, obj.getTotalCompensation());

sales += 5000;

}

  

  

}

}