Cody

Solution 1718585

Submitted on 31 Jan 2019 by William
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'

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

day = 'Wed'

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

day = 'Sun'

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

day = 'Fri'

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

day = 'Sun'

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

day = 'Sat'