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
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 ...
A UNIX shell script is used to develop the hours worked and pay rate to calculate the total pay for employees.