Question: C++ Can anyone make this program? To form a Pig Latin word from an English word, you first determine if the first letter is a
C++ Can anyone make this program?
To form a Pig Latin word from an English word, you first determine if the first letter is a vowel or consonant (vowels are a, e, i, o, uand sometimes y at least for the sake of this discussion). If it is a consonant, remove its consonant group(all consonants up to a vowel; but watch out for qusince it acts together as a consonant), move this groupto the rear of the word, and add "ay"after it. If the first letter is a vowel, leave it there and simply append "yay"to the end of the word.
Write an English to Pig Latin translator. The user types in their sentence(s) (having a sentence end with a is acceptable) and you print them back out in Pig Latin.
In addition to the notes above, also watch out for the occasional word which has neither vowels nor consonants. And when watching for punctuation and/or word boundaries, note that '(single quotes; ticks) are used as not only quoting symbols but also contractions and possessive formation! Whether you decide that a hyphenated word is a single unit or two separate parts is up to you, but make your choice clear in the comments.
Be sure to let the user repeat the entry/translation cycle as many times as they want.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
