Question: write a python script that creates a file with the given format (pic on right) inserting the five employees in the file with the following

 write a python script that creates a file with the given

format (pic on right) inserting the five employees in the file with

write a python script that creates a file with the given format (pic on right) inserting the five employees in the file with the following information.

Eureka Lumber Company would like to calculate the gross pay for its employees. The employees information is stored in a file as name iD number paytype pay.rate hours The fields are separated by a tab "1t" delimiter, and they are described as follows: a. b. c. d. name is a string value ID number is a numeric integer value pay type is a character, either H for hourly, or S for salary pay rate will hold the hourly rate for an hourly pay tvpe, or it would hold the total salary for a salary pay type e. hours worked holds the total number of work hours for the employee The employee gross pay is compute as follows: If employee pay type is hourly gross pay pay.rate hours worked Else if employee pay type is salary based gross pay pay.rate Pay Rate 12 700 720 13 12 Hours Worked 32 40 40 19 23 Name ID Pay Type Kelly lason Alice Debra Gordon

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!