Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

im witing this java code but i really need help with the removeredundancies and

ID: 642317 • Letter: I

Question

im witing this java code but i really need help with the removeredundancies and the getindex method. could someone please give me some hint and examples if possible thank you so much

EmployeeManager

EmployeeManager

- employees : Employee[]

- employeeMax : final int = 100

-currentEmployees : int

<<constructor>> EmployeeManager

+ addEmployee( type : int, fn : String, ln : String, m : char, g : char, en : int, ft : boolean, amount : double)

+ removeEmployee( index : int)

+ listAll()

+ listHourly()

+ listSalary()

+ listCommission()

+ resetWeek()

+ calculatePayout() : double

+ removeRedundancies()

+ getIndex( empNum : int ) : int

+ sortNumber()

+ sortName()

+ annualRaises()

+ holidayBonuses() : double

+ increaseHours( index : int, amount : double)

+ increaseSales( index : int, amount : double)

Data Members

Employee[] employees

EmployeeManager

- employees : Employee[]

- employeeMax : final int = 100

-currentEmployees : int

<<constructor>> EmployeeManager

+ addEmployee( type : int, fn : String, ln : String, m : char, g : char, en : int, ft : boolean, amount : double)

+ removeEmployee( index : int)

+ listAll()

+ listHourly()

+ listSalary()

+ listCommission()

+ resetWeek()

+ calculatePayout() : double

+ removeRedundancies()

+ getIndex( empNum : int ) : int

+ sortNumber()

+ sortName()

+ annualRaises()

+ holidayBonuses() : double

+ increaseHours( index : int, amount : double)

+ increaseSales( index : int, amount : double)

Explanation / Answer

hope this example helps you