Answered step by step
Verified Expert Solution
Link Copied!

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 3 arrays. You will need to read the data from the file payroll.txt. Your progrem must send the report to the screen as well-as to a file named payreport.txt. The data contains the employee number, the number of hours worked, and the employees pay clas3. Use the table below to apply the correct pay rate to the employee. If an employee works more than 40 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
\table[[,Payroll Report,,],[Employee,Hours,Pay,Pay],[Number,Worked,Rate,Amount],[,=,=,],[21212,40,15.00,600.00],[31313,45,20.00,900.00],[Total,85,,1500.00]]
Sample report for data
21212401
3131345,2
\table[[Pay Class,Pay Rate Per hour],[1,15.00],[2,20.00],[3,25.00]]
Employee
Hours
Pay Class
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

Did you add the logo at correct size and proportion?

Answered: 1 week ago