Write a program by using class ‘Employee’
to accept the basic pay of an employee. Calculate the allowance/deductions as
given below-:
- Dearness Allowance(DA)=30% of Basic Pay.
- House Rent Allowance(HRA)=15% of Basic Pay.
- Provident Fund(PF)=12.5% of Basic Pay.
Finally, find and print the Gross and
the Net Pay-:
*Gross Pay=Basic Pay+DA+HRA
*Net Pay=Gross Pay-Provident Fund(PF)
0Comments