|P is for Practical|
For a programming exercise in one of my C/C++ classes we had to write a program that would translate from English to Pig Latin:
The rules for this translation are as follows:
a) For any word starting with one or more consonants, move the starting consonants to the end of the word and append ay
b) for any word starting with a vowel simply append way
c) any other characters can be ignored and all letters can be assumed to be lowercase
I'm curious to see just how little code someone can do this in.
this is the time for all good me no come to the aid of their country. Should become: isthay isway ethay imetay orfay allway oodgay enmay otay omecay otay ethay aidway ofway eirthay ountrycayvroom