CIS 15BG Assignment 4
Type a file containing the following data:
This program converts words into pig Latin. Do you speak pig Latin?
Read the file and convert the text to pig Latin. To convert a word from English to pig Latin:
If the first letter is a vowel, just append
ayto the end of the word.
If the first letter is a consonant,
move the consonants before the first vowel to the end of the word,
Manage upper and lower case letters, so there is not an upper case letter inside a word, and sentences start with an upper case letter. Manage the punctuation, so it is at the end of the sentence.