Documentation
Input
Enter number of employees: 2
Enter details of Employee 1
Enter Employee Number: 101
Enter Employee Name: Rahul
Enter Basic Salary: 20000
Enter details of Employee 2
Enter Employee Number: 102
Enter Employee Name: Neha
Enter Basic Salary: 30000
Output
--- Employee Salary Details ---
Employee No: 101
Employee Name: Rahul
Basic Salary: 20000
DA (52%): 10400
Gross Salary: 30400
IT (30%): 9120
Net Salary: 21280
Employee No: 102
Employee Name: Neha
Basic Salary: 30000
DA (52%): 15600
Gross Salary: 45600
IT (30%): 13680
Net Salary: 31920
✔ Reads data of N employees
✔ Calculates DA = 52% of Basic
✔ Calculates Income Tax (IT) = 30% of Gross Salary
✔ Computes and displays Net Salary for each employee
Salary Formula Used
-
DA = 52% of Basic
-
Gross Salary = Basic + DA
-
IT = 30% of Gross Salary
-
Net Salary = Gross Salary − IT