Cody

Solution 190264

Submitted on 12 Jan 2013 by Tomasz
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 = 1; y_correct = 2; assert(isequal(seven_seg_led(x),y_correct))
ans = Columns 1 through 16 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 Columns 17 through 32 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 Columns 33 through 48 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 6 Columns 49 through 57 2 5 5 4 5 6 3 7 6 ans = 2
2   Pass
%% x = 1234567890; y_correct = 49; assert(isequal(seven_seg_led(x),y_correct))
ans = Columns 1 through 16 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 Columns 17 through 32 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 Columns 33 through 48 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 6 Columns 49 through 57 2 5 5 4 5 6 3 7 6 ans = 49
3   Pass
%% x = 222444666888000; y_correct = 84; assert(isequal(seven_seg_led(x),y_correct))
ans = Columns 1 through 16 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 Columns 17 through 32 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 Columns 33 through 48 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 6 Columns 49 through 57 2 5 5 4 5 6 3 7 6 ans = 84