Input Output Files
Not what you're looking for? Search our solutions OR ask your own Custom question.
Please assist writing a program to read a text file and create a payroll register. The register will contain this data:
Employee(print left-justified)
Department
Pay Rate
Exempt
Hours worked
Base pay(pay rate * hours worked)
Overtime pay (for nonexempt employees. An employee is exempt if Y appears in the exempt column. Overtime is paid at time and one half for all hours worked over 40)
Total pay.
So I did the text file and it's in a table. I started the input output file and I get an error. I'm not sure what else I have to do.
© BrainMass Inc. brainmass.com December 24, 2021, 4:42 pm ad1c9bdddfhttps://brainmass.com/computer-science/files/input-output-files-2810
Solution Preview
I tested you program and found you problem:
You cannot use the input file as the output file at the same, this is because when you do like ...
Solution Summary
The solution creates a payroll register.
$2.49