Passing char to a function

I'm not using arduino ide I'm using vscode wasn't sure how to format it. Also yes it's probably not working code I drafted it just as a way to see what I'm doing and specifying the cases