Explore BrainMass

Explore BrainMass

    Input Output Files

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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)
    Pay Rate
    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 ad1c9bdddf


    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.