Comment by a5c11
Can't tell what would be the best case (pun intended) for you, depends on the language you use. Yes, it will eventually end up as some sort of look-up table, though switch statement is the last option I'd use (assuming you gonna have more than 20 cases or so).
The good thing of programming without generative assistants is that it makes you think how to make the algorithm and the code better to avoid too much manual work. Laziness of engineers is crucial for automation and optimisation.