Looking for an example to help me solve this having


Looking for an example to help me solve this, having problems with mine. 

Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors:

  • A salesperson will earn a fixed salary of $12,000 per year.
  • A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the salesperson's annual sales. The current commission is 7% of total sales.
  • The total annual compensation is the fixed annual salary plus the commission earned.

The Java application should meet these technical requirements:

  • You are not allowed to use any static variables. Your main() method is static, and that's okay.
  • The application should haveexactlyone class. So, the week 2 NetBeans project will look a lot like your week 1 project.
  • Call your project (and class) CommissionCalculatorApp.
  • Your code must ask the user to enter the total sales amount. This should be a matter of 1) displaying a prompt, such as "Enter annual sales: ", and 2) reading the next value from the keyboard. See the
  • Use System.out.println foralloutput, donotuse gui stuff. Likewise, use the Scanner class for reading keyboard input. You might have to look ahead, or on the internet, so see exactly how to use the Scanner class. Or, even better, ask in class!
  • You should modify your "main()" method to 1) prompt the user for input, such as total annual sales, 2) calculate the commission, and 3) calculate total annual compensation, and 4) display the results of the calculations.
  • You are not allowed to "hard code" the commission rate in your code. That is, you must have a commission rate variable.
  • Even though this is called a CommissionCalculator, do not create a 10-button calculator.
  • There should be proper documentation in the source code. That means you should add comments to your code to explain what you're doing.
  • The application(in the "main()" method) should ask the user to enter annual sales, and it should display the commission earned, the commission rate, and the total annual compensation.
  • Use parentheses to explicitly specify the order of operations. Ask questions if you have any.
  • Display all pertinent data to the user, such as commission rate and so on.
  • Format your output correctly. For example, display of money data should have a $ precede the amount; commas NOT necessary; display cents as expected.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Looking for an example to help me solve this having
Reference No:- TGS01647739

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)