Cody

Solution 943295

Submitted on 26 Aug 2016 by steph26
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
x = 'The quick brown fox jumps over a lazy dog'; y_correct = true; assert(isequal(isPangram(x),y_correct))

a = 32 11 8 39 3 17 41 2 7 21 9 34 23 15 13 24 5 12 25 1 6 28 14 19 37 36 tf = 1

2   Pass
x = 'The quick brown fox jumped over a lazy dog'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 33 11 8 26 3 17 42 2 7 21 9 35 23 15 13 24 5 12 1 6 29 14 19 38 37 tf = 0

3   Pass
x = 'Pack my box with five dozen liquor jugs'; y_correct = true; assert(isequal(isPangram(x),y_correct))

a = 2 9 3 23 21 18 38 16 14 36 4 29 6 27 10 1 31 34 39 15 32 20 13 11 7 25 tf = 1

4   Pass
x = 'Pack my box with four dozen liquor jugs'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 2 9 3 23 26 18 38 16 14 36 4 29 6 27 10 1 31 21 39 15 20 13 11 7 25 tf = 0

5   Pass
x = 'Sphinx of black quartz, judge my vow'; y_correct = true; assert(isequal(isPangram(x),y_correct))

a = 13 11 14 27 29 9 28 3 4 25 15 12 31 5 8 2 17 20 1 21 18 34 36 6 32 22 tf = 1

6   Pass
x = 'Sphinx of black onyx, judge my vow'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 13 11 14 25 27 9 26 3 4 23 15 12 29 5 8 2 1 24 32 34 6 19 tf = 0

7   Pass
x = 'Wonderful watermelon, bringer of life.'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 12 23 4 5 7 27 25 9 16 3 2 6 13 8 1 tf = 0

8   Pass
x = 'Dastardly dumpling, harbinger of doom!'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 2 24 1 28 32 18 21 16 8 13 17 31 14 6 3 4 12 9 tf = 0

9   Pass
x = 'AbcDE FgHiJKl mmoPQrstuV Wxyz'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 1 2 3 4 5 7 8 9 10 11 12 13 15 17 18 19 20 21 22 23 24 26 27 28 29 tf = 0

10   Pass
x = 'With quiz game Cody for MATLAB, expect perverse junk.'; y_correct = true; assert(isequal(isPangram(x),y_correct))

a = 12 30 16 18 14 21 11 4 2 49 52 28 13 51 17 35 6 23 46 3 7 43 1 34 19 9 tf = 1

11   Pass
x = 'Punctuation marks like @#$%^</&>*?!!, when used in cartoons to stand in for swearing, are called "grawlix".'; y_correct = false; assert(isequal(isPangram(x),y_correct))

a = 7 4 47 22 73 84 40 9 16 19 13 3 10 1 15 17 5 2 39 105 tf = 0

Suggested Problems

More from this Author95