Its just a bunch of objects and if/else statements, so you can build it in anything. A rules engine is literally this simple (example via Martin Fowler article):
if car.owner.hasCellPhone then premium += 100;
if car.model.theftRating > 4 then premium += 200;
if car.owner.livesInDodgyArea && car.model.theftRating > 2 then premium += 300;
However it’s really easy to design individual rules, it’s just that all those rules have to interact, which gets impossible to manage very quickly. Inference engines are non-trivial, but if it’s just for a school project I assume the requirements are simple enough for it to be doable in anything.
It’ll likely be much easier in something that is actually designed to do it though - for example, the language Prolog and its descendents (eg Mercury) are rules engines, that’s the point of them. Note there’s basic Prolog implementation ported to most languages via MiniKanren, though slow and limited compared to Prolog itself (which isn’t terribly quick anyway).
If you’ve got very little time, just a massive blob of if/else statements. If you’ve got a term or so, probably learn something that’s designed to make it all easier