Cody

Solution 1124655

Submitted on 16 Feb 2017 by Jihye Sofia Seo
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   Pass
x='We are the MaTLaBins'; y_correct = 3; assert(isequal(VOWEL_COUNTER2(x),y_correct))

x = Columns 1 through 16 87 101 32 97 114 101 32 116 104 101 32 77 97 84 76 97 Columns 17 through 20 66 105 110 115 e = 32 66 76 77 84 87 97 101 104 105 110 114 115 116 e = aei y = 3

2   Pass
x='ThiS iS tHe MaTLaB CoDiNg'; y_correct = 4; assert(isequal(VOWEL_COUNTER2(x),y_correct))

x = Columns 1 through 16 84 104 105 83 32 105 83 32 116 72 101 32 77 97 84 76 Columns 17 through 25 97 66 32 67 111 68 105 78 103 e = Columns 1 through 16 32 66 67 68 72 76 77 78 83 84 97 101 103 104 105 111 Column 17 116 e = aeio y = 4

3   Pass
x='eDuCaTioN'; y_correct = 5; assert(isequal(VOWEL_COUNTER2(x),y_correct))

x = 101 68 117 67 97 84 105 111 78 e = 67 68 78 84 97 101 105 111 117 e = aeiou y = 5

4   Pass
x='LaBoRaToRy'; y_correct = 2; assert(isequal(VOWEL_COUNTER2(x),y_correct))

x = 76 97 66 111 82 97 84 111 82 121 e = 66 76 82 84 97 111 121 e = ao y = 2

5   Pass
x='Deleted'; y_correct = 1; assert(isequal(VOWEL_COUNTER2(x),y_correct))

x = 68 101 108 101 116 101 100 e = 68 100 101 108 116 e = e y = 1

6   Pass
x='Dltd'; y_correct = 0; assert(isequal(VOWEL_COUNTER2(x),y_correct))

x = 68 108 116 100 e = 68 100 108 116 e = 1×0 empty char array y = 0