Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task is to produce the payroll report for Middle College as displayed below. Your program MUST use arrays to process the dats. Your program
Your task is to produce the payroll report for Middle College as displayed below. Your program MUST use arrays to process the dats. Your program will use at least arrays. You will need to read the data from the file payroll.txt Your progrem must send the report to the screen as wellas to a file named payreport.txt The data contains the employee number, the number of hours worked, and the employees pay clas Use the table below to apply the correct pay rate to the employee. If an employee works more than hours, then they will receive time and a half for eaoh hour of overtime.
Remember you will get partial credit. If you can not read from the file, then you may assign values to the array elements. If you cannot write to a file, make sure you display the results on the screen.
Your program must be structured using Methods
tablePayroll Report,,EmployeeHours,Pay,PayNumberWorked,Rate,AmountTotal
Sample report for data
tablePay Class,Pay Rate Per hour
Employee
Hours
Pay Class
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started