This document contains the code for a Java class called Act5F that implements a payroll processing and reporting system. It defines arrays to store employee data like names, IDs, hourly rates, and hours worked each day. Methods are created to display lists of employees, hours worked for a selected employee, total regular and overtime hours, and a full payroll report for a selected employee that calculates pay, taxes, and net pay. The main method provides a menu to call these methods and loop the program until the user chooses to end.
This document contains the code for a Java class called Act5F that implements a payroll processing and reporting system. It defines arrays to store employee data like names, IDs, hourly rates, and hours worked each day. Methods are created to display lists of employees, hours worked for a selected employee, total regular and overtime hours, and a full payroll report for a selected employee that calculates pay, taxes, and net pay. The main method provides a menu to call these methods and loop the program until the user chooses to end.
This document contains the code for a Java class called Act5F that implements a payroll processing and reporting system. It defines arrays to store employee data like names, IDs, hourly rates, and hours worked each day. Methods are created to display lists of employees, hours worked for a selected employee, total regular and overtime hours, and a full payroll report for a selected employee that calculates pay, taxes, and net pay. The main method provides a menu to call these methods and loop the program until the user chooses to end.
Scanner in = new Scanner(System.in); int option; do{ System.out.println("\n\n\t\tComputerized Payroll Processing and Reporting"); System.out.println("\n\n\t\tMain Options\n\n");
System.out.println("1 - Display All Employees");
System.out.println("2 - Display Employee Hours Worked Per Day"); System.out.println("3 - Display Total Regular Hours Worked"); System.out.println("4 - Display Total Overtime Hours Worked"); System.out.println("5 - Display Payroll Report"); System.out.println("6 - About Me"); System.out.println("7 - End");
System.out.print("\n\n\t\tChoose an option: \n\n");
option = in.nextInt(); switch (option) { case 1: prtEmployees(); break; case 2: prtHours(); break; case 3: prtTotalRegHrs(); break; case 4: prtOTHrs(); break; case 5: prtPayroll(); break; case 6: abtMe(); break; case 7: System.exit(0); } }while(option != 7); }