Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: • The application will now compare the total annual compensation of at least two salespersons. • It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. • The application should ask for the name of each salesperson being compared. 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 Array or ArrayList. • There should be proper documentation in the source code. Submit a ZIP file containing the “.java” file Attached is the pseudocode for Individual Program #4. Please read the requirements in the syllabus. Here are a few tips: 1) A second .java file is not needed. 2) Programmer-defined methods are not needed. 3). Some of the logic/code is a carryover from Individual Program #3. 4) The primary new concepts introduced will be one-dimensional array processing and the for () loop which is similar to the While() loop

Title: Enhancing the Java™ Application to Compare and Analyze Salespersons’ Compensation

Introduction:
The aim of this assignment is to modify the Week Three Java™ application to meet additional and changed business requirements. The updated application will compare the total annual compensation of at least two salespersons and calculate the additional amount of sales each salesperson must achieve to match or exceed the higher earner. Additionally, the application will prompt the user to enter the names of the salespersons being compared. The technical requirements for the application include having at least one class, the use of an Array or ArrayList, and proper documentation in the source code.

Modification of the Existing Java™ Application:
To meet the new business requirements, the existing Java™ application needs to be modified. The application currently calculates the total annual compensation for a single salesperson. To compare multiple salespersons, the application will extend its functionality to support multiple instances of salespersons’ data.

To achieve this, we can utilize a one-dimensional array to store the necessary data for each salesperson. The array will hold each salesperson’s name, total annual compensation, and any additional details required. By collecting input from the user, the application can populate the array with the relevant data for each salesperson being compared.

The application will prompt the user to enter the names of the salespersons being compared. This can be achieved through the use of input dialogs or by utilizing the console for input. The names entered by the user will be stored in the array.

Next, the program will prompt the user to enter the total annual compensation for each salesperson. Similar to the name input, the compensation values will also be stored in the array.

Once all the necessary data has been collected for each salesperson, the program will compare their respective total annual compensations. It will identify the higher earner and calculate the additional amount of sales required for each salesperson to match or exceed the higher earner.

The application’s logic should update to include a comparison check using conditional statements or loops. By comparing the total annual compensations of each salesperson in the array, the program can determine the higher earner. Then, using another loop or conditional statements, it can calculate the additional sales required for the salespersons who earn less than the higher earner.

To display the results, the program can utilize output dialogs or print statements to show the additional sales required for each salesperson.

Technical Requirements:
Updating the Java™ application to meet the technical requirements involves incorporating an additional class, the use of arrays, and ensuring proper documentation in the source code.

The additional class can be created to handle the comparison and analysis of the salespersons’ compensation. This class can contain methods that perform the necessary calculations and comparisons, making the main application’s code more organized and modular.

The use of an array or ArrayList is required to store the salespersons’ data. With each salesperson’s details stored in the array, the program can easily access and manipulate the necessary information for the comparison and calculation process.

Proper documentation in the source code is vital for maintaining code readability and facilitating future modifications. Clear comments should be added to explain the purpose of each section of code, the logic behind the calculations, and any other relevant information.

Conclusion:
By modifying the existing Week Three Java™ application, we can meet the additional and changed business requirements. Through the use of one-dimensional arrays, input dialogs, and conditional statements, the application can successfully compare the total annual compensation of multiple salespersons and calculate the additional amount of sales required to match or exceed the higher earner. Incorporating an additional class and properly documenting the code will enhance the readability and maintainability of the application.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer