Question: Your company needs a program to process the company's payroll. The timeclock records are in one file named timeclock.txt and your HR department has provided
Your company needs a program to process the company's payroll. The timeclock records are in one file named timeclock.txt and your HR department has provided you with a file named personnel.txt
Instructions
Please pay attention I only need A diagram of the solution and a Pseudocode of the solution. This is important Provide a clear handdrawing Diagram for this assignment
Design
A diagram of the solution
Pseudocode of the solution
Implementation
Create a python program that demonstrates reading and comparing multiple files, processes the input files based on the business rules, and produces an output file.
Needed Files
The timeclock.txt darr file contains the hours worked data for every employee as well as the shift they worked. The layout for the file is as follows:
EMPLOYEENUMBER, HOURSWORKED, SHIFT
The personnel.txt darr file contains the names of all employees and their hourly pay rates. The layout for the file is as follows:
EMPLOYEENUMBER, EMPLOYEENAME, PAYRATE
Note: Both the timeclock.txt and payroll.txt files are presorted by EMPLOYEENUMBER in ascending order.
Business Rules
For hours the employee gross pay is: HOURSWORKED PAYRATE
For hours the employee gross pay is: HOURSWORKED PAYRATE
For shift add $ per hour to the employee pay rate
The program should:
Download both input files in the same folder that you will create your py program.
Read both input files together.
Match the input files by the EMPLOYEE NUMBER.
For each record in the timesheet.txt file, write a record in a new output file named payroll.txt based on the business rules provided. The layout for payroll.txt is as follows:
EMPLOYEENUMBER, EMPLOYEENAME, GROSSPAY
Document your program with appropriate comments. Remember if you worked in teams, all team members' names must be in the comments.
to payrolltxt payrolltxt etc.
timeclock.txt
personnel.txt
Bob Smith,
Jhon Roberts,
Mary Jhonson,
Brad Carson,
Alic martin,
Aaron James,
expectedpayroll.txt
john Roberts,
mary johnson,
Alice martin,
Aaron james,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
