Cody

Solution 1248927

Submitted on 9 Aug 2017 by Ayanle Aden
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))

Score = 1 score = 1

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

Score = 3 Score = 3 1 Score = 3 1 1 Score = 3 1 1 1 Score = 3 1 1 1 1 Score = 3 1 1 1 1 3 score = 10

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

Score = 10 Score = 10 1 Score = 10 1 1 Score = 10 1 1 1 Score = 10 1 1 1 10 Score = 10 1 1 1 10 1 Score = 10 1 1 1 10 1 1 Score = 10 1 1 1 10 1 1 3 Score = 10 1 1 1 10 1 1 3 1 Score = 10 1 1 1 10 1 1 3 1 1 Score = 10 1 1 1 10 1 1 3 1 1 1 Score = 10 1 1 1 10 1 1 3 1 1 1 1 score = 32

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

Score = 10 Score = 10 1 Score = 10 1 1 Score = 10 1 1 1 Score = 10 1 1 1 1 Score = 10 1 1 1 1 10 score = 24

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

Score = 8 Score = 8 1 Score = 8 1 3 Score = 8 1 3 5 Score = 8 1 3 5 1 Score = 8 1 3 5 1 1 score = 19