java program for salary calculation of employee in an organization

Опубликовано: 16 Июль 2026
на канале: Durgaprasad Nannuri
16,688
47

Develop a java application using Inheritance concept to automate the salary calculation of employee in an organization as per the salary band given below. Create a super class called Employee and derive sub classes as per the given table. Apply method overriding (Run time Polymorphism) to implement the following services via menu driven interface.
a) Calculate Gross Salary
Gross=basic+(basic*DA)+(basic*TAX)
b) Calculate Net Salary
NetSal=basic+(basic*HRA)+(basic*DA)+EPF
c) Calculate Tax
TaxVal=(basic*TAX)
d) Print the Pay Details