Structure Query Language, C programming, Java, Servlet, Jsp, Unix
Home
Special
C / C++
GTU [PL/SQL]
IVAN BAYROSS [SQL]
JAVA
UNIX
WTAD
FON
Contact Us
CPP
Android
SEO
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment