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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!