9A

You are given an Employee class. An Employee has a name and an ArrayList of weekly salaries (doubles) to date as instance variables. You will complete the Staff class which manages Employee objects. The Staff class is started for you.  It contains a constructor that initializes the instance variable to an empty ArrayList of Employees. It has an add method for adding an Employees to the Staff.

You are to write a constructor and methods

A toString method has been provided to aid in testing.

For the draft; finish the constructor and code the add() method.


9A draft:
9A final:

9B

Write a class SeaLevelUtil. It has a constructor takes an int array as parameter. The array can be any length .

Write these methods:

For the draft, provide the instance variable and the constructor. Implement the other methods as stubs. Provide Javadoc. Remember that the code will compile and run but the answers are not correct.

9B draft:
9B final:

9C

Write a class called SalaryStatistics. The constructor will take two parameters: The string name of the company and an int array of the annual salaries at this company. Call the name of the company companyName and the name of the int[] salaries. This class is for statistical calculations and so the names of the employees are not given. For simplicity, the salaries are integers

The class has these constructor and methods

Here is an explanation and formula for standard deviation: https://www.mathsisfun.com/data/standard-deviation-formulas.html

For the draft, finish the constructor and provide stubs for the remaining methods. Provide javadoc

9C draft:
9C final: