Question: urgent Develop a Java application to calculate Gross Salary of 'N' employees using Thread environment(Using Thread class). Each employee should represent as an Employee object.

urgent

Develop a Java application to calculate Gross Salary of 'N' employees using Thread environment(Using Thread class). Each employee should represent as an Employee object. The value of N is also taken from the user and N >= 5.

Thread 1: Take the following input from the user: employee name, employee id, employee basic salary.

Thread 2: Calculates each employee gross salary using the following formula: Gross Salary Basic Salary + DA + HRA, where DA= 15% of Basic Salary and HRA= 10% of Basic Salary.

Main Thread: Prints each employee data in the following format: Employee ID: Employee Name : Basic Salary: DA: HRA: 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!