Cody

Solution 1162353

Submitted on 13 Apr 2017 by H M Dipu Kabir
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
year = 2014; day = 'Sun' y_correct = 4; assert(isequal(dd(year,day),y_correct))

day = 'Sun' y = 4

2   Pass
year = 2014; day = 'Wed' y_correct = 5; assert(isequal(dd(year,day),y_correct))

day = 'Wed' y = 5

3   Pass
year = 1999; day = 'Sun' y_correct = 4; assert(isequal(dd(year,day),y_correct))

day = 'Sun' y = 4

4   Pass
year = 1999; day = 'Fri' y_correct = 5; assert(isequal(dd(year,day),y_correct))

day = 'Fri' y = 5

5   Pass
year = 2004; day = 'Sun' y_correct = 4; assert(isequal(dd(year,day),y_correct))

day = 'Sun' y = 4

6   Pass
year = 2000; day = 'Sat' y_correct = 5; assert(isequal(dd(year,day),y_correct))

day = 'Sat' y = 5