Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Your predicate will start with: and enter your code after that. soundslike/2 (re

ID: 3915938 • Letter: Y

Question

Your predicate will start with:

and enter your code after that. soundslike/2 (remember, the slash 2 just means that the predicate takes two arguments) will be true if each of the two arguments is a list of English words, and each of the lists have the same pronunciation. Write your code so that the input string is not allowed to sound like itself ("ice cream" doesn't sound like "ice cream", it is "ice cream"). For example, if you enter

you should get the same values of W as in the ice cream example above, except that "ice, cream" will not appear. Each value of W will be a list of other words that together sound like "ice cream".

Explanation / Answer

//Print only letters from a string