Ramesh’s basic salary is input through the keyboard. His dearness allowance is 55% of basic salary, and house rent allowance is 40% of basic salary. Write a program to calculate gross salary.
echo "Enter the basic salary"
read sal
da=`echo 0.55 \* $sal |bc`
hra=`echo 0.40 \* $sal |bc`
gross=`echo $sal + $da + $hra |bc`
echo "Basic Salary: $sal"
echo "DA : $da"
echo "HRA : $hra"
echo "---------------------"
echo "GROSS SALARY: $gross"
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Wednesday, January 14, 2009
Program in UNIX to calculate gross salary
Posted by ars at 6:40 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment