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

Need help with this class for a java assingment EmployeeManager - employees : Ar

ID: 3574153 • Letter: N

Question

Need help with this class for a java assingment

EmployeeManager

- employees : ArrayList<Employee>

- employeeMax : final int = 10

- hourlyList : LinkedList<Employee>

- salaryList : LinkedList<Employee>

- commissionList : LinkedList<Employee>

- vacationRequests : Queue<Employee>

<<constructor>> EmployeeManager()

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

+ removeEmployee( index : int)

+ listAll()

+ listHourly()

+ listSalary()

+ listCommision()

+ resetWeek()

+ calculatePayout() : double

+ getIndex( empNum : int ) : int

+ annualRaises()

+ holidayBonuses() : double

+ increaseHours( index : int, amount : double)

+ increaseSales( index : int, amount : double)

+ findAllBySubstring(find : String) : Employee[]

- RabinKarp(name : String, find : String) : int

- stringHash(s : String) : int

- charNumericValue(c : char) : int

- RabinKarpHashes(s : String, hashes : int[], pos : int, length : int) : int

- linearSearchRecursive(nameHashes : int[], findHash : int, pos : int) : int

+ sort()

+ addRequest(empNum : int) : boolean

+ viewNextRequest() : Employee

+ grantNextRequest() : Employee

+ outputRequests()

+ loadEmployees(employeeFile : String, requestFile : String) boolean

+saveEmployees(employeeFile : String, requestFile : String) boolean

+processUpdates(fileName : String) boolean

EmployeeManager

- employees : ArrayList<Employee>

- employeeMax : final int = 10

- hourlyList : LinkedList<Employee>

- salaryList : LinkedList<Employee>

- commissionList : LinkedList<Employee>

- vacationRequests : Queue<Employee>

<<constructor>> EmployeeManager()

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

+ removeEmployee( index : int)

+ listAll()

+ listHourly()

+ listSalary()

+ listCommision()

+ resetWeek()

+ calculatePayout() : double

+ getIndex( empNum : int ) : int

+ annualRaises()

+ holidayBonuses() : double

+ increaseHours( index : int, amount : double)

+ increaseSales( index : int, amount : double)

+ findAllBySubstring(find : String) : Employee[]

- RabinKarp(name : String, find : String) : int

- stringHash(s : String) : int

- charNumericValue(c : char) : int

- RabinKarpHashes(s : String, hashes : int[], pos : int, length : int) : int

- linearSearchRecursive(nameHashes : int[], findHash : int, pos : int) : int

+ sort()

+ addRequest(empNum : int) : boolean

+ viewNextRequest() : Employee

+ grantNextRequest() : Employee

+ outputRequests()

+ loadEmployees(employeeFile : String, requestFile : String) boolean

+saveEmployees(employeeFile : String, requestFile : String) boolean

+processUpdates(fileName : String) boolean

Explanation / Answer

HERE IS THE CLASS REPRESENTATION OF YOUR PROBLEM, I HAVE CONSIDERED EMPLYEE CLASS AS EMPTY CLASS AND HAVE MENTIONED IN THE CODE AS WELL

package com.rt1;

import java.util.ArrayList;

import java.util.LinkedList;

import java.util.List;

import java.util.Queue;

class Employee

{}

public class EmployeeManager {

  

   ArrayList<Employee> employees;

   final int employeeMax =10;

   LinkedList<Employee> hourlyList;

   LinkedList<Employee> salaryList;

   LinkedList<Employee> commissionList;

   Queue<Employee> vacationRequest;

   public EmployeeManager() {

       // TODO Auto-generated constructor stub

  

  

   public void addEmployee(int type,String fn, String ln, char m, char g,int en, boolean ft,double amount) throws InvalidEmployeeNumberException

   {

      

   }

  

   public void removeEmployee(int index)

   {

   }

  

   public void listAll()

   {

   }

  

   public void listHourly(){}

   public void listSalary(){}

   public void listCommision(){}

   public void resetWeek(){}

   public double calculatePayout(){}

   public int getIndex(int empNum){}

   public void annualRaises(){}

   public double holidayBonuses(){}

   public void increaseHours(int index,double amount){}

   public void increaseSales(int index,double amount){}

   public Employee[] findAllBySubstring(String find){}

  

  

   public void sort(){}

   public boolean addRequest(int empNum){}

   public Employee viewNextRequest(){}

   public Employee grantNextRequest(){}

   public void outputRequests(){}

   public boolean loadEmployees(String employeeFile,String requestFile){}

   public boolean saveEmplyees(String EmployeeFile,String requestFile){}

   public boolean processUpdates(String fileName){}

  

}

  

}

  

  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote