How to modify JAVA applications

Modify the Week Two 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 salary of $50,000. The current sales target for every salesperson is $100,000. The sales incentive will only start when 80% of the sales target is met. The current commission is 12% of total sales. If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.5. 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 class, in addition to the application s controlling class.
The source code must demonstrate the use of conditional and looping structures. There should be proper documentation in the source code. ===============
Week 2 Code==========================/* * To change this template, choose Tools | Templates * and open the template in the editor. */package commission;import java.util.Scanner;/** * * @author newuser */public class Commission { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner in = new Scanner(; System.out.print(“Please enter annual sales: $”); Double sales = in.nextDouble(); System.out.println(“For annual sales of $” + sales + ” and a yearly salary of $50,000, total compensation is $” + calcCompensation(sales)); } public static double calcCompensation(double sales) { double compensation = 50000 + (0.12 * sales); compensation = (double) (Math.round(compensation*100))/100; return compensation; }}

Related Posts

Quality Writing Features

Price Start $10
  • 24/7 Customer Support
  • All Subject Areas
  • Money-Back Guarantee
  • Timely Delivery
  • Originality report
  • Confidentiality guaranteed

Ordering Homework Writing Service

You can get our ideal online homework help services with four easy steps. All you have to do is inform us of your requirements. Immediately we will match with a specialist in your academic discipline. After that, we will track your order, review it to ensure it meets your requirements, and submit it to your email.


Submit Requirements

Fill in your assignment instructions on the order form


Writer match

Immediately you contact us for homework help; we will assign your assignment to an academic expert.


Quality review

We have a team of editors, who will thoroughly review your assignment, ensuring there are no errors before submission


Get Your Completed Paper

Once we have completed the assignment, we will deliver it to your account. Additionally, we will send a notification to your email.



Budget-friendly writing services



We don’t share our client’s information with a third party



We write every assignment from scratch

Amazing Homework Writing Features

Once you consult us for homework help online services, you will attest to why we are among the USA's best essay writing services.

Read on and find out some of the features that make our services superlative.

Free Homework Writing Services

Free plagiarism checker

You can confirm that the content you get is original for free using our plagiarism checker.

Free samples

We offer unlimited access to our essay homework samples.

Free title page and bibliography

Once you place an order, we format it accordingly without demanding additional charges.

Free unlimited revisions

We offer free unlimited revisions until your assignment is of your desired quality..

Free editing and proofreading

We have a team of specialized editors who review your assignment before submission.

Free customer support

You can track the progress of your homework for free.

Request for Homework Writing Service Today!

We have over 500 homework writing experts, ready and waiting to help you improve your writing skills