Write a program that converts a word input by the user intopig latin. The rules
ID: 3618168 • Letter: W
Question
Write a program that converts a word input by the user intopig latin. The rules for pig latin are: -For words that begin with consonants, move the leadingconsonant to the end of the word and add "ay". Thus "ball" becomes"allbay"; "button" becomes "uttonbay"; and so forth. - For words that begin with vowels, add "way" to the end.This, "all" becomes "allway"; "one" becomes "oneway"; and soforth. Note: you can assume that the word provided by the user willhave all lower case letters. Write a program that converts a word input by the user intopig latin. The rules for pig latin are: -For words that begin with consonants, move the leadingconsonant to the end of the word and add "ay". Thus "ball" becomes"allbay"; "button" becomes "uttonbay"; and so forth. - For words that begin with vowels, add "way" to the end.This, "all" becomes "allway"; "one" becomes "oneway"; and soforth. Note: you can assume that the word provided by the user willhave all lower case letters.Explanation / Answer
please rate - thanks #include #include using namespace std; int main() {int i,j; char str[80]; char wd[50]; char * pch; bool isvowel; int choice; char vowel[11]={"AEIOUaeiou"},first; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.