How can I turn this code into a case switch statement?

Printable View