2 Discussions Questions and Java application for Jaque


I need a Java file created and 2 discussion questions completed. All work must be 100% original and the discussion questions must be in APA format. All work will be checked against plagiarism for originality before final payment is made. Java file must be completed using Java file completed in Week 2. Final Java file must be zipped.




Java Assignment Requirements:


Java assignment must be a modification of the previous Week 2 Java assignment. The finished Java files must be zipped. 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 $120,000. The current sales target for every salesperson is $500,000.
  • The sales incentive will only start when 80% of the sales target is met. The current commission is 6% of total sales.
  • If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.25.
  • 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


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


<<Program calculated value>>


The Java™ application should also meet these technical requirements:


  • The application should have at least one class (suggest call it SalesCommission.java), in addition to the application’s controlling class (suggest call it HalsCommission.java).
  • The source code must demonstrate the use of conditional and looping structures.
  • There should be proper documentation in the source code.


Submit a ZIP file containing the “.java”v




Discussion Question 1, Requirements: Compare the efficiency between a forloop and a whileloopin the same program. Your program should be able to tell if a forloop is faster than a while-loop at the end of the program. Include the result of your run with the information on which one is faster. Make sure to attach file to answer. Other classmates have saved their files as .png files.




Write a 200- to 300-word short-answer response to the following:


 Our focus this week is loops. 


and complete one of the following activities:




Convert the following program from forloop to whileloop.




class ArithmeticProgression
 public static void main (String [] args)
  int sum = 0;




     for (int i = 1; i <= 1000; i++)
         sum = sum + i;




Discussion Question 2, Requirements: Include at least 1 reference


Write a 200- to 300-word short-answer response to the following:


  • Consider the following conditions:


CONDITION 1: while ( !(cChoice == ‘Q’ || cChoice == ‘q’) )


CONDITION 2: while ( cChoice != ‘Q’ || cChoice != ‘q’ )


  • Do Conditions 1 and 2 give the same result? What tool or technique would you use to explain the result?


Leave a Comment

Your email address will not be published. Required fields are marked *