clear
echo "Employee Details"
echo "---------------------"
echo "Enter the emplyee name"
read name
echo "Enter the emplyee number"
read no
echo "Enter the designation"
read des
echo "Enter the basic pay""
read bpay
echo
hra='echo "$bpay*10/100"|bc'
da='expr $bpay*15/100|bc'
lic='expr $bpay*5/100|bc'
pf='expr $bpay*3/100|bc'
gp='echo "$hra+$da+$bpay"|bc'
np='echo "$gp-($lic+$pf)"|bc'
echo "Employee Details"
echo "---------------------"
echo "Employee Name:"$name
echo "Employee Number:"$no
echo "Designation:"$des
echo "Basic pay:"$bpay
echo "HRA:"$hra
echo "DA:"$da
echo "LIC:"$lic
echo "PF:"$pf
echo "Gross Pay:"$gp
echo "Net Pay:"$np
-------------
OUTPUT:
------------
Employee Details
---------------------
Enter the employee name
Ashok
Enter the employee number
13
Enter the designation
labour
Enter the basic pay
8000
Employee Details
---------------------
Employee Name: Ashok
Employee Number:13
Designation :labour
Basic Pay :8000
HRA :800
DA :1200
LIC :400
PF :240
Gross Pay :10000
Net Pay :9360
echo "Employee Details"
echo "---------------------"
echo "Enter the emplyee name"
read name
echo "Enter the emplyee number"
read no
echo "Enter the designation"
read des
echo "Enter the basic pay""
read bpay
echo
hra='echo "$bpay*10/100"|bc'
da='expr $bpay*15/100|bc'
lic='expr $bpay*5/100|bc'
pf='expr $bpay*3/100|bc'
gp='echo "$hra+$da+$bpay"|bc'
np='echo "$gp-($lic+$pf)"|bc'
echo "Employee Details"
echo "---------------------"
echo "Employee Name:"$name
echo "Employee Number:"$no
echo "Designation:"$des
echo "Basic pay:"$bpay
echo "HRA:"$hra
echo "DA:"$da
echo "LIC:"$lic
echo "PF:"$pf
echo "Gross Pay:"$gp
echo "Net Pay:"$np
-------------
OUTPUT:
------------
Employee Details
---------------------
Enter the employee name
Ashok
Enter the employee number
13
Enter the designation
labour
Enter the basic pay
8000
Employee Details
---------------------
Employee Name: Ashok
Employee Number:13
Designation :labour
Basic Pay :8000
HRA :800
DA :1200
LIC :400
PF :240
Gross Pay :10000
Net Pay :9360
0 comments:
Post a Comment