Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago