Menu

(Solved) : Program Needs Read Employees Daily Hours Many Hours Worked Week Calculate Gross Pay Calcul Q44162733 . . .

Your program needs to read in the employees daily hours, how many hours he or she has worked for the week, calculate the gros

Sample of output: WNP Employee Rate 7.50 7.50 7.50 7.50 Total Hours Worked 17 19 20 19 Gross Pay Net Pay 127.50 114.75 142.50

Declare a Scanner to read from file, payrollDdata.txt Read in the “row = the number of employees Declare the 2D array Loop t

Text file:

+ 5 + 6 ო ო ი ქ ქ რ ი ი ი ო ფ ი ი ო H + ო ი ი ქ ო ი ო N 9

Your program needs to read in the employees daily hours, how many hours he or she has worked for the week, calculate the gross pay, and calculate the net pay. Each employee’s pay rate is 7.50 and each employee pays the federal tax rate of 10%. For each employee, print the pay rate, total hours worked, gross pay and net pay. Requirements: name the program TwoDProgram, name the data file twoDdata.txt, and name the output file twoDpayroll.txt Make sure to adhere to the requirements, submit your program, and verify your results. Sample of twoDdata.txt: employees The first item in the file specifies how many Sample of output: WNP Employee Rate 7.50 7.50 7.50 7.50 Total Hours Worked 17 19 20 19 Gross Pay Net Pay 127.50 114.75 142.50 128.25 150.00 135.00 142.50 128.25 Declare a Scanner to read from file, payrollDdata.txt Read in the “row” = the number of employees Declare the 2D array Loop to read in data into a 2D array (#1, page 5) Close Scanner Declare a printWriter to write to payrollOutput.txt file Print titles Loop to: (#4 (modified), page 6) Sum the row to get totalHoursWorked Calculate the gross pay Calculate the tax Calculate the net pay Print format the: row index number, rate, totalHoursWorked, gross pay, net pay Close the printWriter + 5 + 6 ო ო ი ქ ქ რ ი ი ი ო ფ ი ი ო H + ო ი ი ქ ო ი ო N 9 Show transcribed image text Your program needs to read in the employees daily hours, how many hours he or she has worked for the week, calculate the gross pay, and calculate the net pay. Each employee’s pay rate is 7.50 and each employee pays the federal tax rate of 10%. For each employee, print the pay rate, total hours worked, gross pay and net pay. Requirements: name the program TwoDProgram, name the data file twoDdata.txt, and name the output file twoDpayroll.txt Make sure to adhere to the requirements, submit your program, and verify your results. Sample of twoDdata.txt: employees The first item in the file specifies how many
Sample of output: WNP Employee Rate 7.50 7.50 7.50 7.50 Total Hours Worked 17 19 20 19 Gross Pay Net Pay 127.50 114.75 142.50 128.25 150.00 135.00 142.50 128.25
Declare a Scanner to read from file, payrollDdata.txt Read in the “row” = the number of employees Declare the 2D array Loop to read in data into a 2D array (#1, page 5) Close Scanner Declare a printWriter to write to payrollOutput.txt file Print titles Loop to: (#4 (modified), page 6) Sum the row to get totalHoursWorked Calculate the gross pay Calculate the tax Calculate the net pay Print format the: row index number, rate, totalHoursWorked, gross pay, net pay Close the printWriter
+ 5 + 6 ო ო ი ქ ქ რ ი ი ი ო ფ ი ი ო H + ო ი ი ქ ო ი ო N 9

Expert Answer


Answer to Your program needs to read in the employees daily hours, how many hours he or she has worked for the week, calculate the…

OR