Update SalaryCalcLoop.java (Salary Calculator will be below) , to now contain methods that do some of the work that can be modularized. SalaryCalcModularized.java will logically the same as...


Update SalaryCalcLoop.java (Salary Calculator will be below) , to now contain methods that do some of the work that can be modularized. SalaryCalcModularized.java will logically the same as SalaryCalcLoop.java but instead the logic will be modularized into Java Methods. Be sure to continue to take input for every employee in a company, and display their information until a sentinel value is entered, that exits the loop and ends the program. Be sure to comment/document your Methods, see Code Listing 5-5 for example on how to document your methods. SalaryCalcLoop.java:import java.util.Scanner;public class SalaryCalcLoop{ double Rpay = 0, Opal = 0;void Cal Pay(double hours, double rate) { if (hours <=>

System.out.println("Employee Total Pay: " + Tpay);if (shift == 0) {System.out.println("Employee Pay Period is Friday");} else {System.out.println("Employee Pay Period is Saturday");}}}

}


Example:get input for employee informationwhile input is not sentinel value: calculate Salary () calculate Overtime () Display Employee Pay Stub (get input for next employeeend while loop.





May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here