Preview

prg420

Satisfactory Essays
Open Document
Open Document
274 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
prg420
class SalespersonCalc {

/** * variables for storing data */ private double fixedCompensation; private double variablePercent; private double minSaleTarget; private double acceleratingFactor; private double totalCompensation; private final double minTargetPercent;

public SalespersonCalc(double minSaleTarget) { this.fixedCompensation = 12000; this.variablePercent = 0.05; this.acceleratingFactor = 1.25; minTargetPercent = 0.8; this.minSaleTarget = minSaleTarget; this.totalCompensation = fixedCompensation;

}

public double getFixedCompensation() { return fixedCompensation; }

public void setFixedCompensation(double fixedCompensation) {

this.fixedCompensation = fixedCompensation;

}

public double getVariablePercent() { return variablePercent; }

public void setVariablePercent(double variablePercent) { this.variablePercent = variablePercent; }

public double calculateTotalCompensation(double sales) {

// Checks if the sales has reached or exceeded the minimum sale target if (sales >= (getMinSaleTarget() * minTargetPercent)) {

if (sales > getMinSaleTarget()) { totalCompensation = getFixedCompensation()+(sales - getMinSaleTarget()) * getAcceleratingFactor()*getVariablePercent() + getMinSaleTarget()*getVariablePercent(); } else { totalCompensation = getFixedCompensation() + sales * getVariablePercent();

}

} else { totalCompensation = getFixedCompensation(); }

return totalCompensation;

}

public double getMinSaleTarget() { return minSaleTarget; }

public void setMinSaleTarget(double minSaleTarget) { this.minSaleTarget = minSaleTarget; }

public double getAcceleratingFactor() { return acceleratingFactor; }

public void setAcceleratingFactor(double acceleratingFactor) { this.acceleratingFactor = acceleratingFactor; }

}

class SalespersonCalc {

/** *

You May Also Find These Documents Helpful

  • Better Essays

    Gm545 Pp2

    • 1082 Words
    • 5 Pages

    Describe the three types of unemployment. What types of government programs would be most effective in combating each type of unemployment?…

    • 1082 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Annette Smith

    • 1194 Words
    • 5 Pages

    The following information has been provided by the Evans Retail Stores, Inc., for the first quarter of the year:…

    • 1194 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Hist450

    • 681 Words
    • 5 Pages

    10. Where did the author (and others) first get a clue that there was an issue surrounding Ishi’s brain?…

    • 681 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Eg462

    • 407 Words
    • 2 Pages

    alarms or misses, this may influence bias. If the stimulus is a bomber, then a miss (failing to detect the plane) may increase deaths, so a liberal bias is likely. In contrast, crying wolf (a false alarm) too often may make people less likely to respond, grounds for a conservative bias.”(www.wikipedia.org)…

    • 407 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    PT2520

    • 1263 Words
    • 7 Pages

    The course project is based on the Westlake Research Hospital scenario that you have been studying throughout the course and uses the Westlake database you used for the Group A labs. To complete the project, you will need to use your copy of the SQL2008ExpVM virtual machine, as it existed at the end of the last unit (Unit 9). Your instructor will provide you with a script file named ProjectLoadData.sql, which you will use to populate the database. You will receive instructions on how to use this file in Step 10 of the Technical Steps section of this lab.…

    • 1263 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    ACCG315

    • 442 Words
    • 2 Pages

    Finally we finished group report few days ago. I learnt a lot from other group members. Firstly, we got email address information about each other. Then we created a group message. The first group meeting was being hold in week 5. We actually did not talk anything about group project, instead of introduce ourselves. I think it is a good way to know each other first. Because it would be easier for each to talk about their own thoughts.…

    • 442 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    U42 P1

    • 574 Words
    • 3 Pages

    In this document I will be stating why your company should start to use Microsoft Excel for the business accounts instead of doing everything manually with the current pen and paper system.…

    • 574 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Accg326

    • 3574 Words
    • 15 Pages

    Transfer prices affect the reported profit of both parties to an intercompany transaction; revenue for the seller and an expense for the buyer. To fairly evaluate performance, transfer prices should be acceptable to both the buyer and the seller, otherwise dysfunctional behavior can occur.…

    • 3574 Words
    • 15 Pages
    Powerful Essays
  • Better Essays

    Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements:…

    • 761 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Hcs 430

    • 1417 Words
    • 6 Pages

    The health care industry has to have a good leadership foundation to carry out rules, regulations, and procedures. It is important for the success of any organization. In a healthcare organization, good leadership is more than just important; it is significant to the organization’s success. The Joint Commission is an organization which requires that the health care industry provides and maintains a safe environment for patients. If the health care industry does not have good leadership, the industry will suffer the consequences and not meet standards. The Joint Commission on the Accreditation of Healthcare Organizations (JCAHO) monitors health care organizations and ensures the facilities meet standards and then awards the facilities with accreditation. When the health care facility does not meet standards of JCAHO then the public will ponder on accreditation status and if the health care facility meets quality service; as well as standards of a safe environment. The paper will include the history of JCAHO, source of authority, structure, responsibilities, and its effects on health care. The paper will also include an example of the agency which carries out JCAHO duties.…

    • 1417 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    Hrm410

    • 1046 Words
    • 5 Pages

    . (TCO 1) One of the implications of technology in HRM is (Points : 4)…

    • 1046 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    It210-Appendix G

    • 436 Words
    • 2 Pages

    Write “The purpose of this program is to calculate tax for a given salary range”…

    • 436 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg 211

    • 393 Words
    • 2 Pages

    A sequential slow is a series of consecutive statements which is executed in the order that they instructed. The computer only operates on sequential code, one statement after the next, until it encounters a decision structure, loop structure, or a submodule. After the decision, loop, or instructions are completed, the next statement in sequence will be executed.…

    • 393 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    PHL 458

    • 1029 Words
    • 5 Pages

    There a several Steps to Solving a Problem Process and in the paper I will use three of the many stages to solve one of the problems I struggle with on a weekly and daily basis. Stage one of the creative process – searching for the problem – emphasizes the importance of responding to problems in triggering one’s creativity (Ruggiero, 2009). Stage two centers on expressing the problem or issue innumerous ways and finding the most creative and helpful ideas. Obtaining the information necessary to solve the problem or issue is the objective of the third stage. The fourth and final stage of the creative process deals with producing the ideas necessary to solve the problem or determine a stance on the issue. Search Considering the four stages in the creative process that work to solve an issue or problem, a personal challenge that I can apply the stages to would be in re-evaluating myself as a whole and making life changes to become a better family member, friend and friend to myself. I applied three out of the six techniques described in Ch. 6 to help with finding which areas, specifically, needed the most work.…

    • 1029 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    The five year prediction of XYZ Company’s sales displays an upsurge of 15%, 10%, 25%, and 50% in each of the years. The gross profit also improved from $697,428 to $3,494,500 over the five year period. Revenue will increase twice in year 2013, after that revenue will increase 10% in the coming year. Cost of revenue will be based on sales percentage…

    • 452 Words
    • 2 Pages
    Satisfactory Essays