• anonymous
SSH HELP (BASH): I am trying to write a bash script to determine the gross pay of workers, here is what I have so far what am I missing, I can provide further details if needed. Thanks if [ hours_worked -le 40 ] ; then (rate*hours_worked)+ bonus_pay elif [$hours_worked -gt 40 ] && [$hours_worked -le 54] ; then ((rate*40)+((rate*2)*(hours_worked-40)+ bonus_pay)) && (rate*hours_worked)+ bonus_pay else ((rate*40)+((rate*2)*14)+((rate*3)*(hours_worked-54)+ bonus_pay)) fi
Computer Science

Looking for something else?

Not the answer you are looking for? Search for more explanations.