Cody

# Problem 518. English to Pig Latin Translator

Solution 1941442

Submitted on 18 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
str1 = 'question'; str2 = 'estion-quay'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test1 (line 3) str1_f = english2piglatin(str1);

2   Fail
str1 = 'another'; str2 = 'another-ay'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test2 (line 3) str1_f = english2piglatin(str1);

3   Fail
str1 = 'nix'; str2 = 'ix-nay'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test3 (line 3) str1_f = english2piglatin(str1);

4   Fail
str1 = 'another one bites the dust'; str2 = 'another-ay one-ay ites-bay e-thay ust-day'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test4 (line 3) str1_f = english2piglatin(str1);

5   Fail
str1 = 'how much wood would a woodchuck chuck if a woodchuck could chuck wood'; str2 = 'ow-hay uch-may ood-way ould-way a-ay oodchuck-way uck-chay if-ay a-ay oodchuck-way ould-cay uck-chay ood-way'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test5 (line 3) str1_f = english2piglatin(str1);

6   Fail
str1 = 'peter piper picked a peck of pickle peppers'; str2 = 'eter-pay iper-pay icked-pay a-ay eck-pay of-ay ickle-pay eppers-pay'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test6 (line 3) str1_f = english2piglatin(str1);

7   Fail
str1 = 'four score'; str2 = 'our-fay ore-scay'; str1_f = english2piglatin(str1); assert(strcmp(str1_f,str2))

Undefined function 'english2piglatin' for input arguments of type 'char'. Error in Test7 (line 3) str1_f = english2piglatin(str1);