Question: Python: For this assignment, you will write a program that reads employee work data from a text file, and then calculates payroll information based on

Python:

Python: For this assignment, you will write a program that reads employeework data from a text file, and then calculates payroll information basedon this file. The text file contains one line of text foreach employee Each line consists of the following data (delimited by tabs)

For this assignment, you will write a program that reads employee work data from a text file, and then calculates payroll information based on this file. The text file contains one line of text for each employee Each line consists of the following data (delimited by tabs) 1) employee's name 2) employee's hourly wage rateEile Edit Format Yiew Help 3) hours worked Monday 4) hours worked Tuesday 5) hours worked Wednesday 6) hours worked Thursday 7) hours worked Friday empwages.txt- Notepad Smith 10 ones 12.50 4 Miller 20 Baker 15 Ahmad 11.50 4.5 Choi 6.50 20 10 2.2 3.3 6.5 7.5 20 2.5 4 4 The employee Smith makes $10 per hour, and worked 8 hours on Monday, 8 on Tuesday, 8 on Wednesday, 8 on Thursday, and 10 on Friday. You can see similar data for the other employees Expected Behavior of your Program The following screen shots illustrate what your program should be able to do The program will repeatedly present a menu of options, as shown below Menu of choices: (r)ead employee data (p) rint employee payroll (d) isplay an employee by name find (h) ighest paid employee find (1) owest paid employee (q)uit Please enter your choice: For this assignment, you will write a program that reads employee work data from a text file, and then calculates payroll information based on this file. The text file contains one line of text for each employee Each line consists of the following data (delimited by tabs) 1) employee's name 2) employee's hourly wage rateEile Edit Format Yiew Help 3) hours worked Monday 4) hours worked Tuesday 5) hours worked Wednesday 6) hours worked Thursday 7) hours worked Friday empwages.txt- Notepad Smith 10 ones 12.50 4 Miller 20 Baker 15 Ahmad 11.50 4.5 Choi 6.50 20 10 2.2 3.3 6.5 7.5 20 2.5 4 4 The employee Smith makes $10 per hour, and worked 8 hours on Monday, 8 on Tuesday, 8 on Wednesday, 8 on Thursday, and 10 on Friday. You can see similar data for the other employees Expected Behavior of your Program The following screen shots illustrate what your program should be able to do The program will repeatedly present a menu of options, as shown below Menu of choices: (r)ead employee data (p) rint employee payroll (d) isplay an employee by name find (h) ighest paid employee find (1) owest paid employee (q)uit Please enter your choice

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!