Back to problems

Extend an Expense Rules Engine with Nested Boolean Conditions

Object-Oriented Programming · Rippling · Hard

Extending an Expense Rules Engine with Composite Conditions Problem Statement You are building a rules engine for expense management. Expenses contain fields like category, merchant, amount, and purpose. The engine must evaluate whether an expense violates company policy. Currently the system supports simple leaf rules such as: category equals "restaurant" (an equals comparison) amount greater_than 50 (a numeric comparison) Your task is to extend the engine so that leaf…

Checking your access…