Cody

Solution 1663105

Submitted on 31 Oct 2018 by goc3
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))

ans = 1

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

ans = 364

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

ans = 2600

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

ans = 5984

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

ans = 27720

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

ans = 893200

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

ans = 3244140

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

ans = 8104460

Suggested Problems

More from this Author80