Employee No. Department Pay Rate Exempt Hours Worked
============ ========== ======== ====== ============
0101 41 8.11 y 49
0722 32 7.22 N 40
1273 23 5.43 y 39
2584 14 6.74 N 45
I have to write 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.