Decision models, like databases, frequently need to analyze collections of objects. Help an HR office build a rules-based service that analyzes its employees. Each employee has a unique name, age, gender, marital status, one or more residence locations, number of children, salary, and other attributes, arriving as a JSON request. The service should be able to answer questions such as:
- What is the current total number of employees?
- How many children do all employees have in total, and on average?
- What is the average salary, and the maximum/minimum salaries?
- How many employees are single?
- In which states do employees have residences?
- Who are the employees in the top 20% by salary?
- Which employees live in a given set of zip codes?
The service should be easy to extend with new questions as they come up.
Send your solutions to DecisionManagementCommunity@gmail.com, or open a pull request to add yours here.