Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 GordonStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started