logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
596 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sikhar AggarwalMathematics
(5/5)

664 Answers

Hire Me
expert
Laurence FarrelllPsychology
(5/5)

530 Answers

Hire Me
expert
Quintin MiddletonResume writing
(4/5)

654 Answers

Hire Me
expert
Faith BrownComputer science
(5/5)

613 Answers

Hire Me
Python Programming
(5/5)

design a Python program called TimecardFile.py that processes timecard data from an input file.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Timecard File: 

Please design a Python program called TimecardFile.py that processes timecard data from an input file.  Your program will read each record in the input file and add the hours worked for each day of the week and multiply the total hours by the hourly pay rate to get the gross pay amount, and put the results to an output file.  If a timecard record contains more than 40 hours in the week, the hours above 40 are paid at a rate that is 1.5 times the pay rate.  Your program will also accumulate the total of all the gross pay amounts and print that amount, formatted for currency, to the console.  

Once the output file has been closed, print a confirmation message to the console (see example below).  The input file should be named “TimecardFileIP.txt” and output file should be named “TimecardFileOP.txt.  The file locations are to be in the same folder as the source code file.  The input file and output file have all fields and header labels separated by using numerous “\t” escape sequences so that they are formatted exactly as the samples below. 

IP file format:   empNo payRate hrsSat hrsSun hrsMon hrsTue hrsWed hrsThu hrsFri

Sample input file:

 OP file format:  empNo payRate hrsSat hrsSun hrsMon hrsTue hrsWed hrsThu hrsFri totalhrs grossPay

Sample output file from the above input file:

 Sample console output from the above run:

Please rename your source code file to “Your Name Lab06.py”.  Then, send this file as an attachment in a Blackboard message to me. 

 

(5/5)
Attachments:

Expert's Answer

596 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme