Question: IN PYTHON PLEASE If there is a bad data, close it. CIS 221 Module 5 (Ch6&13 PA) Employee Payroll Summary For this assignment, you will





IN PYTHON PLEASE
If there is a bad data, close it.
CIS 221 Module 5 (Ch6&13 PA) Employee Payroll Summary 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. (Make sure you read the last page with requirements.) The text file will contain one line of text for each employee. Each line consists of the following data (delimited by tabs): 1) 2) 3) 4) 5) 6) 7) employee's name employee's hourly wage rate hours worked Monday hours worked Tuesday hours worked Wednesday hours worked Thursday hours worked Friday For example, consider this text file: empwages.tt-Notepad Eile Edit Format Yiew Help Smih 18 Jones 12.50 4 Miller 20 Baker 15 Ahmad 11.50 4.5 Choi 6.50 20 10 6.5 20 2.5 The employee Smith makes S10 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 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 (g)uit Please enter your choice: These are the only allowable options. If the user types anything other than r, p, d, h,1, or q, you should print an error message, and again present the menu, like this: CIS 221 Module 5 (Ch6&13 PA) Employee Payroll Summary 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. (Make sure you read the last page with requirements.) The text file will contain one line of text for each employee. Each line consists of the following data (delimited by tabs): 1) 2) 3) 4) 5) 6) 7) employee's name employee's hourly wage rate hours worked Monday hours worked Tuesday hours worked Wednesday hours worked Thursday hours worked Friday For example, consider this text file: empwages.tt-Notepad Eile Edit Format Yiew Help Smih 18 Jones 12.50 4 Miller 20 Baker 15 Ahmad 11.50 4.5 Choi 6.50 20 10 6.5 20 2.5 The employee Smith makes S10 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 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 (g)uit Please enter your choice: These are the only allowable options. If the user types anything other than r, p, d, h,1, or q, you should print an error message, and again present the menu, like this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
