Cody

Solution 1987789

Submitted on 23 Oct 2019
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
y = ieee_lm(1940,1965); y_correct = 2005; assert(isequal(y,y_correct))

yob = 2005 m = 40 y = 2005

2   Fail
y=ieee_lm(1990,2035); y_correct=2063; assert(isequal(y,y_correct))

yob = 2055 m = 20 y = 2135

Assertion failed.

3   Fail
y=ieee_lm(1980,2018); y_correct=2049; assert(isequal(y,y_correct))

yob = 2045 m = 27 y = 2118

Assertion failed.

Suggested Problems

More from this Author1