Calculate the additional amount of sales

Assignment Help JAVA Programming
Reference no: EM131137151

The instructions are as follows:

Modify the Week Three Java application using 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.
Submit your Java application file using the Assignment Files tab.

Here is what my week 3 is and I add your information and it doesn't work.
/*Individual Week 2 Java Assignment

package commission;
importjava.util.Scanner;
/**
*
* @author Kr5975
*/
public class Commission {
/**
* @paramargs the command line arguments
*/

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);
System.out.println("Enter the Total Annual Sales of the Person");// Request for User Input for Annual Sales
intannualsales = sc.nextInt();// Read the input as Integer and assign it to annualsales variable
System.out.println("With an Annual Salary of $100,000 and 5 % commision on total annual sales" );//display the salary and commision rate

Salesperson sp = new Salesperson(annualsales);//To create an Instance of a new sales person


System.out.println("The Annual Compensation is " + sp.getTotalAnnualCompensation());
//Calculates the annual compensation and gives the output

// TODO Auto-generated method
int salary =100000;
System.out.println("Total Sales Total Compensation");
for(int i =100000;i<=150000;i=i+5000){
if(i>=0.8*120000){
salary+=0.05*i;
System.out.println("tiny_mce_markerquot;+i +" ttiny_mce_markerquot;+salary);
}
else if (i>120000){
salary+=0.05*1.25*i;
System.out.println("tiny_mce_markerquot;+i +" ttiny_mce_markerquot;+salary);
}
else{
System.out.println("tiny_mce_markerquot;+i +" ttiny_mce_markerquot;+salary);
}
}

}
}

package commission;
/**
*
* @author KR5975
*/
public class Salesperson {

// fixed salary variable
doublefixedSalary;
// variable of the value of salepersons annual sales
doubleannualSales;
//commission earned
double commission;
public Salesperson(double annualSales){
this.annualSales=annualSales;
commission=0.05*annualSales;//The current commission is 5% of total sales.
fixedSalary=100000;//The set fixed salary is $100000
}
public double getTotalAnnualCompensation(){// Calculate total annual compensation this is the fixed salary and add the commission earned
returnfixedSalary+commission;
}
}

Reference no: EM131137151

Questions Cloud

What is her optimal order quantity to minimize total cost : A retailer sells an excellent grape soda. She buys the soda from a supplier and incurs a setup charge of $10 each time she orders. Demand for the soda is 4000 cases per year, and holding cost are 2$ per case per year. The purchase price per case is $..
Why a denominator cannot be zero : Find the domain for each of your two rational expressions. Write the domain of each rational expression in set notation. Explain in your own words what the meaning of domain is. Also, explain why a denominator cannot be zero.
What data fields might be necessary to manage information : We want to design a new database for college operation that will produce class status, student’s tuition and instructors’ salaries per semester. What data fields might be necessary to manage information for the tables Students, Classes, and Instructo..
Making compelling argument on how application of value chain : Write a 2–3 page essay paper making a compelling argument on how the application of the value chain in the management of your life can create and increase your value as a person, student, co-worker, team member, manager, parent, spouse, etc. Determin..
Calculate the additional amount of sales : 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 expected return on the optimal risky portfolio is what : An investor can design a risky portfolio based on two stocks, A and B. Stock A has an expected return of 21% and a standard deviation of return of 39%. Stock B has an expected return of 14% and a standard deviation of return of 20%. The expected retu..
Demonstrate your understanding of compound inequalities : In this discussion, you will be demonstrating your understanding of compound inequalities and the effect that dividing by a negative has on an inequality.
Conflict and consternation between management and unions : Why is there is conflict and consternation between management and unions? In other words, what are the fundamental reasons interactions between management and labor can be so challenging?
Provide a detailed description of the present process : Students must identify a business (giving a brief description of the business background and operations) and choose one aspect of financial operation from the following areas:

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd