Home ProgrammingProblem Solving Eliminating a Switch statement