Cody

Solution 1909874

Submitted on 23 Aug 2019 by Abbie Lund
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))

b = 1 b = 1 b = 1 b = 1 b = 1 b = 1 b = 1

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

b = 4 b = 4 b = 10 b = 10 b = 10 b = 10 b = 10

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

b = 9 b = 9 b = 12 b = 12 b = 12 b = 12 b = 32

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

b = 4 b = 4 b = 4 b = 4 b = 4 b = 4 b = 24

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

b = 3 b = 3 b = 6 b = 6 b = 11 b = 19 b = 19

Suggested Problems

More from this Author95