Preview

Prg420 V10 Week 4 Individual Assignment

Better Essays
Open Document
Open Document
761 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Prg420 V10 Week 4 Individual Assignment
PRG420 (Version 10) - Week 4 Individual- Simple Commission Calculation Program Part 3 Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: * The application will now 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.

Source Code:

/** *
Program: Simple Commission Calculation Program Part 3
Purpose: to calculates and display the total annual compensation of a salesperson.
Programmer:
Class: PRG420
Instructor:
Creation Date:
Programmer Modification Date:
Purpose: to add name of sales person and also functionality to manage the list of sales persons an comparing their annual compensation
Program Summary: This program will calculate and display the total annual compensation of a salesperson. Here in this program the salary of the salesman and its commission rate is fixe and program accepts sales amount.

*/ import java.util.ArrayList; import java.util.Scanner; import java.text.NumberFormat;

class SalesPerson {

private final double fixed_Salary = 35750.00; private final double commission_Rate = 12.0; private final double sales_Target = 125250.00;

private String name; private double annual_Sales;

//default constructor public SalesPerson() { name = "Unknown"; annual_Sales = 0.0; }

//parameterized constructor public SalesPerson(String

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Yes, all terms below are correct! Christopher will get a settlement amount of $5,711.20 now from State Farm. And after successfully subrogate the at fault party, Christopher will receive another $500. The payment of $350 for the car seat is to pay for the damaged car seat; it's not part of the total loss settlement. No loss of use and rental reimbursement.…

    • 145 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Pay as you order policy - The customers will be required to pay the amount of their orders before receiving their orders.…

    • 644 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Kudler Fine Foods has established that they want to design a WAN to tie three different locations together and make the internal network in each store a Wireless Local Area Network. Then, they are requesting Voice Over Internet Protocol to each multi store network. Various protocols make all this happen. Transfer Control Protocol and Internet Protocol are the foundation of data transfer. TCP is the protocol that the internet, email and ftp highly rely on. Without TCP/IP there would be no internet, email or FTP. Two other protocols designed to process packets throughout the network are X.25 and Frame Relay. For this scenario Frame Relay will be used so I will not provide a brief description about X.25. Frame relay was based on the X.25 protocol and even though the option isn’t there to check an error, which is the end stations responsibility. Frame relay does reduce the amount of overhead associated with data transmission, which allows for a faster packet switching method. As recommended this network will use a T1 line to reach the required bandwidth from node to node. This will give the customer the option to data burst the line. However, if the network traffic is heavily congested it will be controlled so everyone is satisfied. Frame relay uses a specific fast packet switching technology that allows overhead reduction. Flow control and error correction determines the efficiency of the fast packet switch. Now what happens is the frame relay inside the network will detect the error and simply just drop the frame.The OSI model divides network communication into seven layers. Each layer describes the various protocols and function. Using Frame Relay you now get to exclude any layer 3 protocol because the operation is performed on the second OSI layer (data-link).When the company adapts a fully connected topology will be used. As for right now, the setup will resemble a Ring Topology.…

    • 3545 Words
    • 15 Pages
    Good Essays
  • Good Essays

    Be open-minded when dating. Instead of going out for dinner, set up a nice candlelight dinner at home. This is not only the more impressive option, but the cheaper one as well. Make an agreement with your roommates. If they stay out during your date night, you will reciprocate when it is their turn.…

    • 374 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Prg421 Week 2 Ia

    • 565 Words
    • 3 Pages

    import java.awt. FlowLayout; import java.awt. GridLayout; import java.awt.event. ActionEvent; import java.awt.event. ActionListener; import java.text.…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    I am the middle child of three , I have a 16 almost 17 years-old brother and a three month old younger brother. I live in Brewster but have been going to Chelan school since I was in fourth grade. Over the years that I have gone to Chelan I have had many fun classes and we've done many fun activities. There has been many of different activities and they helped me stay more focused when we have to do our larger assignments. Some of my favorites were a debate we did in language arts it really helped remember important things. Also on different things I'll talk about later.…

    • 363 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Stein, T.J. (2004), The role of law in social work practice and administration, Columbia University Press, New York.…

    • 872 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    * This program allows a user to calculate a mortgage payment based on their input.…

    • 469 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Employee Compensation

    • 307 Words
    • 2 Pages

    The direct financial compensation is the primary component in a total rewards package (Duchon, 2007). The financial compensation for the newly selected sales team will be a combination of salary plus incentives (commissions and bonuses). Straight salary plans will provide the sales reps with a steady guaranteed income as well as motivate effort on non selling activities. The incentive payments will help direct effort towards strategies, provide additional rewards to top performers and encourage sales success. The goal of the combined financial...…

    • 307 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Sales Comparison

    • 414 Words
    • 2 Pages

    /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bossia4; /** * * @author Holly */ public class CompareTotals { private double salary, commissionRate, incentiveRate, commission, sales, totalCompensation, target; //constructor public CompareTotals() { salary = 25000; commissionRate = .10; incentiveRate = .25; target = 96000; } public void calculate(double sales) { if (sales>0&&sales<target) commission+=sales*commissionRate; System.out.println("You did not meet 80% of target sales."); if(sales>0&&sales>target) commission+=sales*incentiveRate; System.out.println("You did meet 80% of target sales!")…

    • 414 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Lisa Gamel CSU Global Campus ITS320 Basic Programming Dr. Biswajit Panja Final February 26, 2015 / * * Program number: University – ITS-320 – Basic Programming * Name * Date: 02/26/2015 * */ public class NegativeAmountException extends Exception { private static final long serialVersionUID =…

    • 444 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Chemgrow Case Study.Doc

    • 617 Words
    • 3 Pages

    The sales representative and there average percentage is shown in exhibit 6.3 ans also lets us know the overall contribution of the best sales representatives. According to the exhibit 6.2 the gross margin of each product is given, the decision on the best sales representative can be calculated comparing the average of the sales representatives with gross margin for each product. The best salesperson is by far Dow even though his contribution is limited to one product. Since the gross margin of Ammonia is way higher than the rest, contribution of Dow has exceeded the rest and is the best sales figure among all the sales representatives. The next best sales representative would be Thums contributing again heavily on ammonia and a small amount on Phosphates.…

    • 617 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Smis Report

    • 13462 Words
    • 54 Pages

    I hereby declare that the project work entitled “Sales Management Information System” is an authentic record of my own work carried out at TCIL-IT as requirements of Industry Internship project for the award of degree of B.Tech (CSE) in the Department of Computer Science and Engineering, BBSBEC, fatehgarh sahib ,Affiliated to PTU , Jalandhar under Roll No.-90060302280 under the guidance of Mr. Jitendra Yadav (Industry Coordinator) and Prof. Dhavleesh Ratan(Faculty Coordinator), during July to December 2012.…

    • 13462 Words
    • 54 Pages
    Powerful Essays
  • Satisfactory Essays

    c ++ program

    • 252 Words
    • 1 Page

    In the statement cin >> y;, y can only be an int or a double variable.…

    • 252 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    java

    • 571 Words
    • 3 Pages

    System.out.println("The clerk's number is" + clerk.getEmpNum() + " and the friver's number is " + driver.getEmpNum());…

    • 571 Words
    • 3 Pages
    Satisfactory Essays