Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need assistance in writing a python 3 . x and require explicit details : Command Run Python command should be something like the following, where

need assistance in writing a python3.x and require explicit details : Command Run
Python command should be something like the following, where translation.py is the name of the python script file.
python translation.py DP611.SDF 2024-05-25-2024-06-01(yyyy-m-d)
SDF Translation
First column:
Ignore ! lines
X lines are Per Performance Employees
W lines are regular employees
First zero 0 after W, or X is ignored
Ensure only converting 611EMS rows
Translation
Translate SSN to EID using the last-4 digits of the SSN
NOTE: Luke M. will providing a EMS CSV of SSN/EID mapping that will have either the last 4 or last 5 of the SSN
Per-performance Output
Should output to single CSV file called 611-EMS-PP-{PPdatehere}.csv.
{employee id},{end date of time period},Performances,{number of hours}
e.g.6564,2024-06-01,Performances,36.00
The two possible dates are teh Week 1 and Week 2 Ending Saturday dates.
For the pay period ending 2024-05-15 the two dates would be either 2024-06-08 or 2024-06-15.
Regular Employees Output
Should output to single CSV file called 611-EMS-BW-{PPdatehere}.csv.
Example
W0XXXXXXXXX611EMS 24001200540012008400000001203303000K5716S15G4
Columns:
Interpret as noted above
[Week1Shifts]
[Week1StraightOvertime]
[Week1FLSAOvertime]
[Week2Shifts]
[Week2StraightOvertime
[Week2FLSAOvertime]
[Docked]
[Vacation]
[SickLeave]
[CompTimeEarned]
[CompTimeTaken]
[Week1FireShift]
[Week2FireShift]
[MedicalLeave]
Output by row:
Vacation Used Info from Col 9(always use end date of PP)
2384,2024-06-01,Vacation Used Info,24.00
Shift Pay City (Week 1) from Col 2
2280,2024-05-25,Shift Pay City,4.00
Shift Pay City (Week 1) from Col 5
2280,2024-06-01,Shift Pay City,5.00
ST Overtime (Week 1) from Col 3 & 4(summed)
2384,2024-05-25,ST Overtime,4.00
ST Overtime (Week 2) from Col 6 & 7(summed)
2384,2024-06-01,ST Overtime,4.00
Docked Pay from Col 8(always use end date of PP)
4352,2024-06-01,Docked Pay,84.00
Medical Used Info from Col 15(always use end date of PP)
182,2024-06-01,Medical Used Info,12.00
Note that number on SDF has 1 decimal place, but gets translated to 2 here.
Sick Used Info from Col 10
2384,2024-06-01,Sick Used Info,2.00

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

b. Did you suppress any of your anger? Explain.

Answered: 1 week ago