Explore BrainMass

Explore BrainMass

    Input Output Files

    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)
    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 March 4, 2021, 5:37 pm ad1c9bdddf
    https://brainmass.com/computer-science/files/input-output-files-2810

    Attachments

    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

    ADVERTISEMENT