Structure Query Language, C programming, Java, Servlet, Jsp, Unix

Friday, 30 March 2012

Write a script to calculate gross salary for any number of employees
Gross Salary =Basic + HRA + DA.
HRA=10% and DA= 15%.


clear
echo "        GROSS SALARY CALCULATOR"
echo "        ======================="
echo "ENTER BASIC SALARY:"
read basic
hra=`expr 10 \* $basic / 100`
da=`expr 15 \* $basic / 100`
gs=`expr $basic + $hra + $da`
# gs=`expr $gs + $da`
echo "GROSS SALARY IS $gs"

No comments:

Post a Comment