Java source code using netbeans

Anonymous
timer Asked: Oct 2nd, 2013
account_balance_wallet $5

Question Description

A salesperson will continue to earn a fixed salary of 50,000. The current sales target for every sales person is 120,000. The sales incentive will only start when 80% of the sales are met. The current commission is 12% of total sales. If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The factor is 1.25

Tutor Answer

duingpung
School: Purdue University

ublic class Compensation
{
private double annualSalary;
private double annualSales;
private double commissionPercent;
private double accelerationFactor;

// Constructor
Compensation()
{
annualSalary = 0;
annualSales = 0;
commissionPercent = 0;
accelerationFactor = 0;
}

Compensation(double aSalary, double aSales, double aCommPercent, double aAccelerationFactor)
{
annualSalary = aSalary;
annualSales = aSales;
commissionPercent = aCommPercent;
accelerationFactor = aAccelerationFactor;
}

// Public Methods
public void setAnnualSalary(double aSalary)
{
annualSalary = aSalary;
}

public void setAnnualSales(double aSales)
{
annualSales = aSales;
}

public void setCommissionPercent(double aCommPercent)
{
commissionPercent = aCommPercent;
}

public void setAccelerationFactor(double aAccFactor)
{
accelerationFactor = aAccFactor;
}

public double getAnnualSales()
{
return annualSales;

flag Report DMCA
Review

Anonymous
Good stuff. Would use again.

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors