Cody

# Problem 1559. COUNT VOWEL

Solution 3514239

Submitted on 2 Nov 2020
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
x='coUnt the vowEl'; y_correct = 5; assert(isequal(vowel_counter(x),y_correct))

w = 'c' w = 'co' w = 'coU' w = 'coUn' w = 'coUnt' w = 'coUnt ' w = 'coUnt t' w = 'coUnt th' w = 'coUnt the' w = 'coUnt the ' w = 'coUnt the v' w = 'coUnt the vo' w = 'coUnt the vow' w = 'coUnt the vowE' w = 'coUnt the vowEl' y = 15

Assertion failed.

2   Fail
x='coUnt the vowEl counter'; y_correct = 8; assert(isequal(vowel_counter(x),y_correct))

w = 'c' w = 'co' w = 'coU' w = 'coUn' w = 'coUnt' w = 'coUnt ' w = 'coUnt t' w = 'coUnt th' w = 'coUnt the' w = 'coUnt the ' w = 'coUnt the v' w = 'coUnt the vo' w = 'coUnt the vow' w = 'coUnt the vowE' w = 'coUnt the vowEl' w = 'coUnt the vowEl ' w = 'coUnt the vowEl c' w = 'coUnt the vowEl co' w = 'coUnt the vowEl cou' w = 'coUnt the vowEl coun' w = 'coUnt the vowEl count' w = 'coUnt the vowEl counte' w = 'coUnt the vowEl counter' y = 23

Assertion failed.

3   Fail
x='The fox was the jackle'; y_correct = 6; assert(isequal(vowel_counter(x),y_correct))

w = 'T' w = 'Th' w = 'The' w = 'The ' w = 'The f' w = 'The fo' w = 'The fox' w = 'The fox ' w = 'The fox w' w = 'The fox wa' w = 'The fox was' w = 'The fox was ' w = 'The fox was t' w = 'The fox was th' w = 'The fox was the' w = 'The fox was the ' w = 'The fox was the j' w = 'The fox was the ja' w = 'The fox was the jac' w = 'The fox was the jack' w = 'The fox was the jackl' w = 'The fox was the jackle' y = 22

Assertion failed.

4   Fail
x='Education'; y_correct = 5; assert(isequal(vowel_counter(x),y_correct))

w = 'E' w = 'Ed' w = 'Edu' w = 'Educ' w = 'Educa' w = 'Educat' w = 'Educati' w = 'Educatio' w = 'Education' y = 9

Assertion failed.

5   Fail
x='We are the MaTLaBiAns'; y_correct = 8; assert(isequal(vowel_counter(x),y_correct))

w = 'W' w = 'We' w = 'We ' w = 'We a' w = 'We ar' w = 'We are' w = 'We are ' w = 'We are t' w = 'We are th' w = 'We are the' w = 'We are the ' w = 'We are the M' w = 'We are the Ma' w = 'We are the MaT' w = 'We are the MaTL' w = 'We are the MaTLa' w = 'We are the MaTLaB' w = 'We are the MaTLaBi' w = 'We are the MaTLaBiA' w = 'We are the MaTLaBiAn' w = 'We are the MaTLaBiAns' y = 21

Assertion failed.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!