Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Java applications using NetBeans Integrated Development Environment (IDE

ID: 3589083 • Letter: W

Question

Write a Java applications using NetBeans Integrated Development Environment (IDE) that calculates total annual compensation of a sale person considering the following factors.

The company has recently changed its total annual compensation policy to improve sales. A salesperson will continue to earn a fixed salary of $85,000.00. The current sales target for every salesperson is $150,000.00.

The sales incentive will only start when 80% of the sales target is met. The current commission is 15% of total sales. If a salesperson exceeds the sales target, the commission will increase based on an Incentive factor. The Incentive factor is 2.0%.

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 $20,000.00 increments above the salesperson's annual sales, until it reaches 50% above the salesperson's annual sales.

Explanation / Answer

package com.itrosys.amazon;

import java.util.Scanner;

public class Test {

@SuppressWarnings("resource")

public static void main(String[] args) {

for (int j = 1; j < 11; j++) {

System.out.println("Total Sale: " + j);

System.out.println("Total Compensation: " + j);

  

Scanner input = new Scanner(System.in);

double annualSales;

double annualTotal = 85000;

double salary;

double commRate;

double salesTarget;

double potSales;

double counter;

salary = 85000; //set rate of 50,000.00 per sales rep

commRate = 0.15; //set commission rate of 15 percent

salesTarget = 150000;

System.out.print("Enter the amount of sales:$");

annualSales = input.nextInt();

if (annualSales >= 880000) {

if (annualSales < 150000) {

annualTotal = annualSales * commRate + salary;

System.out.println("You earned 15% sales incentive!");

System.out.println("You also earned the extra incentive!");

System.out.println("Total compensation is :$" + annualTotal);

} else {

annualTotal = annualSales * (commRate * 2) + salary;

System.out.println("You earned a 15% sales incentive!");

System.out.println("Total compensation is :$" + annualTotal);

}

} else {

System.out.println("No sales incentive was earned.");

System.out.println("The total compensation is:$" + salary);

}

potSales = annualSales * 0.15 + annualSales;

System.out.println("This is your potential sales in 5k increments.");

System.out.println("Total Sales Total Compensation");

for (counter = annualSales; counter <= potSales; counter++) {

// print the commission with the projected sales.

System.out.println("100,000" + " " + counter);

System.out.println("105,000" + " " + counter);

System.out.println("110,000" + " " + counter);

System.out.println("115,000" + " " + counter);

System.out.println("120,000" + " " + counter);

System.out.println("125,000" + " " + counter);

System.out.println("130,000" + " " + counter);   

}   

}

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote