EMPLOYEE PAYROLL

SOURCE CODE:
get()
{
echo “ Enter code, allowance, deduction, basic pay ”
read code
read all
read ded
read basic
}
display()
{
echo “ The code is $code ”
echo “ The allowance is $all ”
echo “ The deduction is $ded ”
echo “ The basic pay is $basic ”
}
get $code $all $ded $basic
gross=`expr $bacis + $all`
net=`expr $gross - $ded`
echo “ The gross is $gross ”
echo “ The net is $net ”

OUTPUT:
[examuser35@localhost Jebastin]$sh emp.sh
Enter code, allowance, deduction, basic pay
100
200
300
400
The gross is 600
The net is 300
Previous
Next Post »

If you still didn't find what you're looking for, you can search this website below: