Question: I need help with this programing problem. It has to be in Java language and have two different modules in which one calculates the employee


I need help with this programing problem. It has to be in Java language and have two different modules in which one calculates the employee bonus and the other does the store bonus.
Critical Review In C++, you use the while statement to write a condition-controlled loop. The loop has two parts: (1) a condition that is tested for a true or false value, and (2)a statement or set of statements that is repeated as long as the condition is true A while loop can also be used for count-controlled loops. Here is the general format of the while loop in Java: while (BooloeanExpression) statement statement etc. Since the while loop is a pre-test, it is important to initialize your loop control variable to a starting value so that the first iteration will be true. As with all loops, be sure to change the loop control variable either by incrementing or asking a question. The goal of this lab is to translate your work in the pseudocode to actual code using Java. Test the following values to verify the expected output. Is this correct? Input Values monthlySales 120500 The store bonus amount is S 5000 sales!ncrease = 0.05 monthlySales 93400 salesIncrease 0.05 monthlySales = 75000 salesIncrease 0.015 Expected Output The e The store bonus amount is S500 The employee bonus amount is $50 The store bonus amount is S500 The employee bonus amount is $0 e bonus amount is $ 50 When your code is complete and runs properly, capture the output. Print both the source code and the output. Critical Review In C++, you use the while statement to write a condition-controlled loop. The loop has two parts: (1) a condition that is tested for a true or false value, and (2)a statement or set of statements that is repeated as long as the condition is true A while loop can also be used for count-controlled loops. Here is the general format of the while loop in Java: while (BooloeanExpression) statement statement etc. Since the while loop is a pre-test, it is important to initialize your loop control variable to a starting value so that the first iteration will be true. As with all loops, be sure to change the loop control variable either by incrementing or asking a question. The goal of this lab is to translate your work in the pseudocode to actual code using Java. Test the following values to verify the expected output. Is this correct? Input Values monthlySales 120500 The store bonus amount is S 5000 sales!ncrease = 0.05 monthlySales 93400 salesIncrease 0.05 monthlySales = 75000 salesIncrease 0.015 Expected Output The e The store bonus amount is S500 The employee bonus amount is $50 The store bonus amount is S500 The employee bonus amount is $0 e bonus amount is $ 50 When your code is complete and runs properly, capture the output. Print both the source code and the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
