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 <Add a salary figure here>.
- 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 <Add a percentage here> of total sales.
- The total annual compensation is the fixed salary plus the commission earned.
You will be assigned a salary figure and commission % from the following list in class:
- 120, 4% ( this is what I am assigned)
The Java™ application should meet these technical requirements:
- The application should have at least one class, in addition to the application’s controlling class (a controlling class is where the main function resides).
- There should be proper documentation, including a program header comment block, in the source code.
- The application should ask the user to enter annual sales, and it should display the total annual compensation.
Submit a ZIP file containing the “.java” file. To get full credit include your name and week # in the filename. Example: SmithWk2Compensation.


0 comments