Question: 1) Write a Java program to create a class 'Employee and the following members are used in this class. Object Class: Employee Member variables: Employeeid.

 1) Write a Java program to create a class 'Employee" and

1) Write a Java program to create a class 'Employee" and the following members are used in this class. Object Class: Employee Member variables: Employeeid. Employee name. BasicSalary, TA, HRA, Insurance, Gross salary Member Methods: Set 0 Calculate Grosso Create a method called Set ( and set the Employeeid. Employeename, BasicSalary Create a method called Calculate_Gross() and calculate & return the Gross Salary TA = 20 % of Basic Salary HRA 10% of Basic Salary Insurance 5% of Basic Salary Grosssalary Basicsalary + TA + HRA . Driver Class: Employee test Get the input values Employeeid. Employeename. BasicSalary Pass the values Employeeid. Employeename, BasicSalary in the set(method Display the Employeeid. Employeename. BasicSalary Gross salary |

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!