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: omputercay ogrammingpray isway unfay otay earnlay!
Enter a group of words or ENTER to quit: Quit
Hint: If a word begins with one or more consonants, move the consonant or consonant cluster to the end of the word