Question: python Instructions data.txt payroll.py + >_ Terminal + 1 2. The Payroll Department keeps a list of employee information for each pay period in a

 python Instructions data.txt payroll.py + >_ Terminal + 1 2. ThePayroll Department keeps a list of employee information for each pay period

python

Instructions data.txt payroll.py + >_ Terminal + 1 2. The Payroll Department keeps a list of employee information for each pay period in a text file. The format of each line of the file is the following: Write a program that inputs a filename from the user and prints to the terminal a report of the wages paid to the employees for the given period. The report should be in tabular format with the appropriate header. Each line should contain: o An employee's name Instructions data.txt payroll.py + >_ Terminal Each line should contain: 1 2 o An employee's name o The hours worked The wages paid for that period. An example of the program input and output is shown below: Enter the file name: data.txt Name Total Pi Lambert Hours 34 22 357.6 Osborne 137.! Giacometti 5 503

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!