ok here you go.. first part was this which worked just fine but I have to do the second part to include on this first part...Thanks in advance for all your help!
* Title: Simple Commission Calculation Part I
* This project demostrates:
* - The use of an additional Method
* - The ability to enter data
* - Documentation in Source Code
* Author: Sanjay Rimal
* Date: 1/20/2014
import static java.lang.System.in;
* Added java.util.Scanner for the input of data from user keyboard
public class CommissionCalculation1
* @param args the command line arguments
* Salesperson monthly salary of $4,000.00 = The Annual salary is $48,000.00
* Salesperson total annual salary = Annual salary + annual sales * 20%
public static void main(String args)
// TODO code application logic here
Scanner input = new Scanner ( System.in );
System.out.println("Please enter annual sales: $");
Double sales = input.nextDouble();
System.out.println("For annual sales of $" + sales + " and a yearly salary " + " of $48,000, total annual compensation is $" + calcCompensation(sales));
public static double calcCompensation(Double sales)
double compensation = 48000 + (0.20 * sales);
compensation = (double) (Math.round(compensation*100))/100;
//To change body of generated methods, choose Tools | Templates.
}//end of method main
}//end class CommissionCalclator1
Modify the Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements:
• The company has recently changed its total annual compensation policy to improve sales.
• A salesperson will continue to earn a fixed monthly salary of $4,000.00. The current sales target for every salesperson is $120,000.00.
• The sales incentive will only start when 80% of the sales target is met. The current commission is 25% of total sales.
• If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.25.
• The application should ask the user to enter annual sales, and it should display the total annual compensation.
• The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it reaches 50% above the salesperson’s annual sales.
Sample Table: Assuming a total annual sales of $100,000, the table would look like this:
Total Sales Total Compensation
The Java™ application should also meet these technical requirements:
• The application should have at least one method, in addition to the application’s starting method (“main” method).
• The source code must demonstrate the use of conditional and looping structures.
• There should be proper documentation in the source code.