Write a program by using class ‘Employee’ to accept the basic pay of an employee. Calculate the allowance/deductions as given below-:

 

Write a program by using class ‘Employee’ to accept the basic pay of an employee. Calculate the allowance/deductions as given below-:

    Write a program by using class ‘Employee’ to accept the basic pay of an employee. Calculate the allowance/deductions as given below-:


  1. Dearness Allowance(DA)=30% of Basic Pay.
  2. House Rent Allowance(HRA)=15% of Basic Pay.
  3. 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)










Post a Comment

0Comments