How can the Week Three Java application be modified to compare the total annual compensation of at least two salespersons?

  

Modifythe Week Three Java application using 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.

Introduction:
The Week Three Java application using NetBeans IDE has been modified to add additional and changed business requirements. The updated application is designed to allow the comparison of total annual compensation of at least two salespersons. It should also calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher earner.

Don't use plagiarized sources. Get Your Custom Essay on
How can the Week Three Java application be modified to compare the total annual compensation of at least two salespersons?
Just from $13/Page
Order Essay

Description:
The previous Java application has been updated to meet the additional business requirements. The program must allow the user to enter the name of each salesperson being compared. Then, the application should calculate and compare the annual compensation of each salesperson. It must determine the additional sales that each salesperson must achieve to match or exceed the highest earner. This program must include at least one additional class, in addition to the controlling class, and demonstrate the use of either an Array or ArrayList. Proper documentation within the source code is also required to successfully improve the program.

Objectives:
– To modify the Week Three Java application using NetBeans IDE.
– To ensure that the modified Java application compares the total annual compensation of at least two salespersons.
– To calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners.
– To prompt the user to enter the name of each salesperson being compared.
– To incorporate at least one class, in addition to the controlling class, in the application.
– To demonstrate the use of Array or ArrayList in the source code.
– To include proper documentation in the source code.

Learning Outcomes:
– Students will be able to use NetBeans IDE to modify existing Java applications.
– Students will be able to compare the total annual compensation of at least two salespersons.
– Students will be able to calculate the additional amount of sales required for each salesperson to match or exceed the higher earner.
– Students will be able to prompt the user to enter the name of each salesperson being compared.
– Students will be able to create additional classes in a Java application.
– Students will be able to use Array or ArrayList in Java applications.
– Students will be able to document their source code appropriately.

Solution 1:

Revised Java Application for Sales Comparison using NetBeans IDE

Introduction:

This solution is a revised Java Application that meets the additional requirement of comparing the annual compensation of at least two salespersons, calculating additional sales, and documenting the source code. We accomplish this by including an additional class in addition to the controlling class, using ArrayList to store the salespersons’ data, and adding documentation for better understanding.

Technical Requirements:

1. Add one more class beside the controlling class.
2. Implement ArrayList to store salespersons’ data.
3. Proper documentation of the source code

Modification in the program:

• We have created a separate class called “Salesperson” that contains the Salesperson’s name and annual sales.
• We have used ArrayList to store the data of the salespersons.
• We have added a function called “compareAnnualCompensation” that accepts two salespersons’ data and compares the two salespersons.
• We have added a function called “additionalAmountToBeatHighestEarner”, which determines the additional amount of sales each salesperson must achieve to match or exceed the highest earner.
• We have added a function called “display” that displays the name and annual sales of the Salespersons

Conclusion:

With these modifications, the revised Java application now meets the requirement of comparing the total annual compensation of at least two salespersons. It also calculates the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. Additionally, the application uses ArrayList to store data and is well-documented.

Solution 2:

Improved Java Application for Sales Comparison using NetBeans IDE

Introduction:

This Solution is another modified Java Application that fulfills the business requirements of comparing the annual compensation of at least two salespersons, calculating additional sales, and documenting the source code. We accomplish this by using ArrayList to store the salespersons’ data, adding necessary functions, and documenting the source code.

Technical Requirements:

1. Implement ArrayList to store salespersons’ data.
2. The source code must demonstrate the use of Array or ArrayList.
3. Proper documentation of the source code.

Modification in the program:

• We have used ArrayList to store the data of the salespersons.
• We have added a function called “compareAnnualCompensation” that accepts two salespersons’ data and compares the two salespersons.
• We have added a function called “additionalAmountToBeatHighestEarner”, which determines the additional amount of sales each salesperson must achieve to match or exceed the highest earner.
• We have added a function called “display” that displays the name and annual sales of the Salespersons
• We have used the try-catch mechanism to handle exceptions that can occur in the program.

Conclusion:

The Revised Java application now meets the requirement of comparing the total annual compensation of at least two salespersons. Additionally, it calculates the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The Application uses ArrayList to store data and has proper documentation. Furthermore, the try-catch mechanism ensures that any occurring exceptions are adequately handled.

Suggested Resources/Books:

1. “Effective Java” by Joshua Bloch
2. “Java: A Beginner’s Guide” by Herbert Schildt
3. “Head First Java” by Kathy Sierra and Bert Bates
4. “Java How To Program” by Harvey Deitel and Paul Deitel

Similar asked questions:

1. What are the best practices for using NetBeans IDE for Java development?
2. What are some common technical requirements for Java applications?
3. How can I use arrays or ArrayLists in my Java application?
4. What are some strategies for documenting my Java code effectively?
5. How can I modify a Java application to meet new business requirements?

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
× How can I help you?