... | @@ -23,6 +23,7 @@ And the following methods: |
... | @@ -23,6 +23,7 @@ And the following methods: |
|
|
|
|
|
* Public` initWithName` initializer method, which accepts organization name as an input parameter.
|
|
* Public` initWithName` initializer method, which accepts organization name as an input parameter.
|
|
* Public `addEmployeeWithName:` (accepts employee name as an input parameter with no return type), which creates a new employee and adds it to the array. The salary is random between 100 and 5000 and is divisible by 10 (e.g. 110, 4670).
|
|
* Public `addEmployeeWithName:` (accepts employee name as an input parameter with no return type), which creates a new employee and adds it to the array. The salary is random between 100 and 5000 and is divisible by 10 (e.g. 110, 4670).
|
|
|
|
* Public `addEmployee:` (accepts an instance of Employee).
|
|
* Public `calculateAverageSalary` method, which return the average salary of all employees.
|
|
* Public `calculateAverageSalary` method, which return the average salary of all employees.
|
|
* Public `employeeWithLowestSalary` method, which returns one employee with the lowest salary in the organization.
|
|
* Public `employeeWithLowestSalary` method, which returns one employee with the lowest salary in the organization.
|
|
* Public `employeesWithSalary:tolerance:` method, which accepts two arguments of type int - salary and tolerance - and returns all employees with given salary +- tolerance as an array.
|
|
* Public `employeesWithSalary:tolerance:` method, which accepts two arguments of type int - salary and tolerance - and returns all employees with given salary +- tolerance as an array.
|
... | | ... | |