Question: I need a working python code from the following example. Develop a solution for the problem of reading each employees information from the file, computing
I need a working python code from the following example.
Develop a solution for the problem of reading each employees information from the file, computing her gross pay, and then printing out all the employee information along with her gross pay.
For problem 1 in assignment 7, write a python script that creates a file with the given format, inserts five employees into that file with the following information: (20 points)
| Name | ID | Pay Type | Pay Rate | Hours Worked |
| Kelly | 1 | H | 12 | 32 |
| Jason | 2 | S | 700 | 40 |
| Alice | 3 | S | 720 | 40 |
| Debra | 4 | H | 13 | 19 |
| Gordon | 5 | H | 12 | 23 |
Your code should output each employees name, ID, pay type, pay rate, hours worked, and the calculated gross pay. (20 points) Each employees information should be printed on the same line. Information for each employee should be printed on a separate line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
