Cody

Solution 1719739

Submitted on 3 Feb 2019 by Alfonso Nieto-Castanon
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
% Last Minute Shopping x = 1;y_correct = 1; assert(isequal(how_many_days(x),y_correct))

2   Pass
% You traditionalist you x = 12;y_correct = 364; assert(isequal(how_many_days(x),y_correct))

3   Pass
% All of December x = 24;y_correct = 2600; assert(isequal(how_many_days(x),y_correct))

4   Pass
% Start on Black Friday this year! x = 32;y_correct = 5984; assert(isequal(how_many_days(x),y_correct))

5   Pass
% Halloween? I suppose so... x = 54;y_correct = 27720; assert(isequal(how_many_days(x),y_correct))

6   Pass
% July 4?? That's a bit much. x = 174;y_correct = 893200; assert(isequal(how_many_days(x),y_correct))

7   Pass
% Only a fool starts Christmas shopping on April 1!! x = 268;y_correct = 3244140; assert(isequal(how_many_days(x),y_correct))

8   Pass
% December 26. Because why not? x = 364;y_correct = 8104460; assert(isequal(how_many_days(x),y_correct))