Write a program that will input a phrase and convert it to pig latin . Put each word in a separate element of a string array . Remove the first letter from each word and concatenate it to the end of the word followed by “ ay .”
Sample Output from Program
You will be prompted to enter a string of words . The string will be converted into Pig Latin and the results displayed . Enter as many strings as you would like .
Enter a group of words or ENTER to quit Computer Programming is fun to learn !
Original words Computer Programming is fun to learn ! New Words omputercayogrammingprayiswayunfayotayearnlay !
Enter a group of words or ENTER to quit Quit
Pig Latin Hint
If a word begins with one or more consonants , move the consonant or consonant cluster to the end of the word . Add the letters ay to the end of the word . So , pig would be igpay , and “ latin ” would be “ atinlay .”
Step 2 Processing Logic Using the pseudocode below , write the code that will meet the requirements .