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

  • Powerful Essays

    Mktg 485

    • 4893 Words
    • 20 Pages

    XYZ Cupcakes is an amateur business, assimilating a wealth of competitive strategies fixated on commercial adaptability and agility for actualizing a loyal consumer base in Towson, MD. We specialize in providing ornamental cupcakes, manifested in a casual atmosphere. We expect to be profitable within our first year of operating in order to reinvest in the company, and expand retail locations by year three. At that time, we anticipate establishing individual partnerships with appointed head chef’s, who will personally invest in their location and be rewarded for profitability. Our forecast for procurement predicts total sales in the summer months will be slightly higher, as more people will be having BBQs and picnics; and highest in November and December, due to the wealth of food-oriented holidays, and desired gift packages. While emphasis in the first year will be on advertising to establish our presence in the area, our company attempts to fulfill two milestones in our retail store within the first three years:…

    • 4893 Words
    • 20 Pages
    Powerful 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
  • Powerful Essays

    Bisc403

    • 2334 Words
    • 10 Pages

    iBISC403 Genetics and Evolutionary Biology Exam 2, March 22, 2012 Instructions: 1. Grid in your name on the answer sheet. 2. DO NOT grid in your student number, the course number or section. 3. Print your last name at the top of this cover page and short answer pages. 4. At the end of the exam, turn in your exam and your answer sheet together. All multiple choice questions are of equal value and together are worth 80% of the exam. The three short answer questions are each of indicated value and worth 20% of the exam.…

    • 2334 Words
    • 10 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
  • Good Essays

    Acc421

    • 899 Words
    • 4 Pages

    Kudler Fine Foods was founded in 1998 by Kathy Kudler in San Diego, CA. Since the beginning of operation of one store, the business has grown to a total of three stores. By concentrating on the market research this will help with expansion of more locations.…

    • 899 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Acg 4325

    • 1547 Words
    • 7 Pages

    * Its ability to report profits and pay dividends depended entirely on its ability to report gains on land transactions. Without the $153 million of gains on real estate sales reported during 1986 and 1987, LS&L would have reported pretax losses totaling $8 million.…

    • 1547 Words
    • 7 Pages
    Satisfactory 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
  • Good Essays

    PRG/420 Week 3

    • 1025 Words
    • 5 Pages

    Scanner; /* * @author * Week 3 Individual Assignment * Assignment: Simple Commission Calculation Project Part 2 * Due Date: */ public class AnnualCompensationCalculator { /** * main method begins program execution */ public static void main(String args[]) { String firstName; // Get user 's first name String lastName; // Get user 's last name int salary; // User 's fixed annual salary double commissionRate; // User 's commission rate double sales; // User 's annual sales double totalCommission; // User 's total commission earned double totalCompensation; //…

    • 1025 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
  • 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
  • Satisfactory Essays

    NRS 427V

    • 123 Words
    • 2 Pages

    has requested approval to participate in a community teaching experience at the location listed on this form. The organization / agency does not endorse the university or the student however, the teaching plan developed by the student is considered appropriate and of benefit to the community of interest.…

    • 123 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PCN501

    • 209 Words
    • 1 Page

    Methadone is a long-acting synthetic opioid agonist medication that can prevent withdrawal symptoms and reduce craving in opioid-addicted individuals. It can also block the effects of illicit opioids. It has a long history of use in treatment of opioid dependence in adults and is taken orally.…

    • 209 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Crm565

    • 4688 Words
    • 19 Pages

    Saint Leo University School of Education and Social Sciences Department of Criminal Justice Masters in Criminal Justice Administration CRJ565 SP 2 Leadership Applications in Criminal Justice Instructor: Fermin De La Torre, J.D. Office: Phone: 352-467-0656 Fax: None Email: fermin.delatorre@saintleo.edu Class Meets: Thursday 06:00PM - 10:00PM, Chesapeake Center Crossways Blvd room TBA Office Hours: 30 minutes before or after class or by appointment The best way to reach me is by email at fermin.delatorre@saintleo.edu, since I check my email twice daily. In general I will respond to you within 24 hours. In addition, you may call me by phone at 352-467-0656, but if I am unavailable I ask that you leave a message, so that I can contact you as soon as possible. Please don't hesitate to contact me with any questions or concerns, I am here to help you in any way I can. Course Description Contemporary Literature holds that “managers do things right; leaders do the right thing.” This course will offer an analysis of the most effective theories of organizational leadership, with a focus on their appropriate applications within criminal justice. Of critical importance will be the identification and discussion of those critical leadership skills necessary to advance a criminal justice agency. Required Textbook American Psychological Association (2009). Publication manual of the American Psychological Association (6th ed.). ISBN: 1-4338-0561-8 ISBN-13: 978-1-4338-0561-5. Dubrin, A. J. (2010). Leadership: Research Findings, Practice, Skills, 6th Edition. Rochester Institute of Technology. ISBN-10: 0547143966 ISBN-13: 9780547143965. Optional Reading Pelfrey, W. V. (2005). The Cycle of Preparedness: Establishing a Framework to Prepare for Terrorist Threats. Journal of Homeland Security and Emergency Management, Vol. 2, Issue 1, Article 5, 2005. Course Objectives…

    • 4688 Words
    • 19 Pages
    Satisfactory 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

    Phl458

    • 818 Words
    • 3 Pages

    Adam Cavkic, Dan Lopez, Heba Hummusani, Lisa Lin, Sophia Salazar, Ursula Adams, Vivian Moran and Wes Spivey,…

    • 818 Words
    • 3 Pages
    Good Essays