Question: The class name should be Controller2, an underscore, and your NetID run together; for example, if your NetID is abcde6, your class name would be
The class name should be Controller2, an underscore, and your NetID run together; for example, if your NetID is abcde6, your class name would be Controller2_abcde6. Likewise, Employee should be renamed Employee2. For this assignment, we will create text-based tools for managing employee records. All requirements from the previous assignment remain in effect for the new classes. The new features for this application are:
For Employee2, add set methods for ssn and employeeId.
For the Controller2 class generally:
The constructor should create the Employee2 array e initial size zero.
Data fields in Employee2 objects should be assigned new values using the corresponding set methods and read them using the corresponding get methods.
Write a method ePlus that accepts the Employee2 array e as a parameter and returns an Employee array. The returned array should be one element larger than e and contain all elements of e in the same indexes. To expand e, use: e = ePlus(e);.
Write a method eMinus that accepts an int index as a parameter and returns an Employee array. The returned array should be one element smaller than e and without the element at index index. The elements in the returned array should otherwise maintain the same order as in e. To delete an element at index index, use: e = eMinus(index);.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
