Question: Write a C++ program for .... (Pig Latin) A language game, such as Pig Latin, alters spoken words to make them incomprehensible to the untrained
Write a C++ program for .... (Pig Latin) A language game, such as Pig Latin, alters spoken words to make them incomprehensible to the untrained ear. Write a program to prompt the user for an English word, phrase, or sentence and then translate the words into Pig Latin, as follows: the initial consonants are moved from the front of the word to the end and the letters ay are then added to the end. Thus meal becomes eal-may, scram becomes am-scray, and java becomes ava-jay. If the word begins with a vowel, then just add ay to the end.
If you could add comments to the code, explaining whats going on, it would be appreciated!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
