... | @@ -25,7 +25,7 @@ And the following methods: |
... | @@ -25,7 +25,7 @@ And the following methods: |
|
* 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 `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:` method, which accepts one argument of type int - salary - and returns all employees with given salary 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.
|
|
|
|
|
|
Application should create one organization and multiple employees, which are added to the organization. Than all of the methods should be demonstrated. Everything should be logged to `NSLog`.
|
|
Application should create one organization and multiple employees, which are added to the organization. Than all of the methods should be demonstrated. Everything should be logged to `NSLog`.
|
|
|
|
|
... | | ... | |