Menu
support@authoritypapers.com
+1(805) 568 7317

i need help with the following using the code below the application needs to compare 5188629

I need help with the following. Using the code below, the application needs to compare the total annual compensation of at least two salespersons. It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared. The Java application should also meet these technical requirements: The application should have at least one class, in addition to the application's controlling class. The source code must demonstrate the use of Array or ArrayList. There should be proper documentation in the source code.

Here is the current calculator:

/*
*
*/
package commissioncalculator;

/**
*
*
*/
public class CommissionCalculator {

  
public static final double COMM_RATE = 0.07; // Rate for Commission

public static final double FIXED_SALARY = 12000;

public static final double SALES_TARGET = 120000;

public static final double ACL_FACT = 1.25; // The acceleration factor

public static final double MIN_RATE = 0.8; // The 80% Incentive Rate

private final double annualSales;
private double commission;
private double totalCompensation;

public CommissionCalculator(double sales) {
annualSales = sales;
commission = 0;
totalCompensation = 0;
}

public void calcCommission() {
// If/Then statement to calculate commission rates.
if (annualSales
commission = 0;// No Commission earned 🙁
} else if (annualSales > SALES_TARGET) {
commission = annualSales * (COMM_RATE) * ACL_FACT;//Commission Rate plus accelerator.
} else {
commission = COMM_RATE * annualSales;// Normal Commission rate.
}

totalCompensation = commission + FIXED_SALARY;
}

public double getTotalCompensation() {
return totalCompensation;
}
}

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now