How do I make this case execute correctly in switch statement?

Printable View