Question: Create only 4 Array Lists for empID, empName, empDept, empSalary. Or create Java Class with variables: empID , empName, empDept, empSalary and use constructor, getters

Create only 4 Array Lists for empID, empName, empDept, empSalary.
Or create Java Class with variables:empID, empName, empDept, empSalaryand use constructor, getters and setters.
The program should look something like this:
ID NAME DEPT SALARY ANNUAL SALARY
----------------------------------------------------------------
123 John IT450054000
432 Sarah ACC550066000
765 James IT650078000
Your menu should include:
-------------------------------
1. ADD EMPLOYEE
2. ADD EMPLOYEE BY INDEX
3. REMOVE BY EMPLOYEE NAME
4. UPDATE SALARY BY EMPLOYEE ID
5. SEARCH BY ID and SHOW HIS/HER INFO
6. SHOW ALL EMPLOYEES and THEIR INFO ONLY BY DEPARTMENT
7. SHOW HIGH, LOW and TOTAL ANNUAL SALARIES

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 Programming Questions!