Cody

# Problem 2524. weekday and month

Solution 2156613

Submitted on 11 Mar 2020 by Daniel Pereira
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'

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!