C++ Program Basic Salary of the employee with dearness allowance

Write a program that inputs the name, Basic Salary of the employee. The program calculates 35% dearness allowance, 25% house rent of the employee from the basic salary then displays the gross salary which is adds basic salary, dearness allowance and house rent of the employee.

 

Output

Enter employee’s name: Ali
Enter the basic salary: 20000
Employee Name: Ali
Basic Salary: 20000
Dearness Allowance (35%): 7000
House Rent (25%): 5000
Gross Salary: 32000