I'm trying to get user entered sentence and translate it to Pig Latin. How should I edit my code? Constants I have to take the first letter and place in back then add "ay". Vowels you just add "-way". Thanks.
To avoid having a really long on line 3, use a switch statement instead.
Same for line 11, except that you will use the default clause because you want consonants not vowels.
The thing that attracts my attention is the really long if conditions where there is a pattern. I personally detest the one on line 11 (that is just my view though). A switch is much better because it is scalable.
If you are not sure how a switch works - read about here: