Explore BrainMass

Explore BrainMass

    Using UNIX for a Payroll

    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!

    Develop and run a shell script to input number of hours worked and pay rate and calculate the total pay, then the social security amount (assume 5%), then the net pay. Do this as a loop until the number of hours worked is zero.

    © BrainMass Inc. brainmass.com November 30, 2021, 2:33 am ad1c9bdddf
    https://brainmass.com/computer-science/operating-systems/using-unix-186367

    Solution Preview

    The following script inputs hours worked and pay rate to calculate grossPay. It calculates the social security amount by multiplying the social security rate 5% with the grossPay. Next it deducts this social security amount from the grossPay to calculate the net pay amount. Please remember that bash variables cannot ...

    Solution Summary

    A UNIX shell script is used to develop the hours worked and pay rate to calculate the total pay for employees.

    $2.49

    ADVERTISEMENT