Cody

Solution 1907155

Submitted on 21 Aug 2019 at 7:49 by Nikolaos Nikolaou
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
str = 'a'; score = 1; assert(isequal(scrabble_score(str),score))

t1 = 1 t2 = 0 t3 = 0 t4 = 0 t5 = 0 t6 = 0 t7 = 0 score = 1

2   Pass
str = 'matlab'; score = 10; assert(isequal(scrabble_score(str),score))

t1 = 4 t2 = 0 t3 = 6 t4 = 0 t5 = 0 t6 = 0 t7 = 0 score = 10

3   Pass
str = 'quetzalcoatl'; score = 32; assert(isequal(scrabble_score(str),score))

t1 = 9 t2 = 0 t3 = 3 t4 = 0 t5 = 0 t6 = 0 t7 = 20 score = 32

4   Pass
str = 'quartz'; score = 24; assert(isequal(scrabble_score(str),score))

t1 = 4 t2 = 0 t3 = 0 t4 = 0 t5 = 0 t6 = 0 t7 = 20 score = 24

5   Pass
str = 'jackal'; score = 19; assert(isequal(scrabble_score(str),score))

t1 = 3 t2 = 0 t3 = 3 t4 = 0 t5 = 5 t6 = 8 t7 = 0 score = 19