Modify your PigLatin function (Exercise 15.7) so that it can translate entire phrases of words into Pig

Question:

Modify your PigLatin function (Exercise 15.7) so that it can translate entire phrases of words into Pig Latin. Similar to the Acronym function from Exercise 17.5, your function should break the input string into words using the split method. It should then translate each word as before and combine the translated words into a new phrase (with a space between each word). Modify your piglatin.html page so that it instructs the user to enter a phrase for translation (see Figure 17.9)?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: