Pig Latin Generator 50pts Write A Program That Encodes English Language Phrases Into A Simplified Version Of Pig Lat 1 (43.18 KiB) Viewed 14 times
Pig Latin Generator 50pts Write A Program That Encodes English Language Phrases Into A Simplified Version Of Pig Lat 2 (43.18 KiB) Viewed 14 times
Pig Latin Generator (50pts) Write a program that encodes English-language phrases into (a simplified version of) Pig Latin. The code should: prompt the user for phrase. use strtok to split the phrase into words take the first letter of each word and move it to the end of the word add the letters "ay" to the word. • • Example: if the sentence is then the result should be: Pig latin is cool igpay atinlay siay oolcay. Assume the following: • the words in the phrase are separated by blanks • there are no punctuation marks • all words have two or more letters Create a function that converts each word to Pig Latin and displays it. Every time the strtok function is used, pass the token pointer to the function and print the Pig Latin word.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!