Question: write a python script that creates a file with the given format array (shown) where you insert the five employees into the file with the

write a python script that creates a file with the given format array (shown) where you insert the five employees into the file with the information such as name, I'D, pay type, pay rate, and hours worked
Eureka Lumber Company would like to calculate the gross pay for its employees. The employe information is stored in a file as name lD number pay.typepay.rate hours worked The fields are separated by a tab "t" delimiter, and they are described as follows: a. name is a string value b. ID number is a numeric integer value c. pay type is a character, either H for hourly, or S for salary d. pay rate will hold the hourly rate for an hourly pay type, or it would hold the total sala salary pay type e. hours worked holds the total number of work hours for the empfoyee The employee gross pay is compute as follows If employee pay.type is hourfy gross pay pay .rate hours worked Else if employee pay type is salary based gross pay pay rate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
