Cody

Solution 2188570

Submitted on 2 Apr 2020 by Simon Hönes
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))

totalPoints = 1 totalPoints = 1 totalPoints = 1 totalPoints = 1 totalPoints = 1 totalPoints = 1 score = 1

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

totalPoints = 4 totalPoints = 4 totalPoints = 10 totalPoints = 10 totalPoints = 10 totalPoints = 10 score = 10

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

totalPoints = 9 totalPoints = 9 totalPoints = 12 totalPoints = 12 totalPoints = 12 totalPoints = 12 score = 32

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

totalPoints = 4 totalPoints = 4 totalPoints = 4 totalPoints = 4 totalPoints = 4 totalPoints = 4 score = 24

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

totalPoints = 3 totalPoints = 3 totalPoints = 6 totalPoints = 6 totalPoints = 11 totalPoints = 19 score = 19