Cody

Solution 1704180

Submitted on 7 Jan 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   Fail
N = 384; a_correct = 42; assert(isequal(age(N),a_correct))

Undefined function 't' for input arguments of type 'double'. Error in age (line 3) a = t(find(mod(N + nines,10)==0))/10; Error in Test1 (line 3) assert(isequal(age(N),a_correct))

2   Fail
N = 366; a_correct = 42; assert(isequal(age(N),a_correct))

Undefined function 't' for input arguments of type 'double'. Error in age (line 3) a = t(find(mod(N + nines,10)==0))/10; Error in Test2 (line 3) assert(isequal(age(N),a_correct))

3   Fail
N = 381; a_correct = 39 assert(isequal(age(N),a_correct))

a_correct = 39

Undefined function 't' for input arguments of type 'double'. Error in age (line 3) a = t(find(mod(N + nines,10)==0))/10; Error in Test3 (line 3) assert(isequal(age(N),a_correct))

4   Fail
N = 302; a_correct = 32; assert(isequal(age(N),a_correct))

Undefined function 't' for input arguments of type 'double'. Error in age (line 3) a = t(find(mod(N + nines,10)==0))/10; Error in Test4 (line 3) assert(isequal(age(N),a_correct))

5   Fail
N = 389; a_correct = 47; assert(isequal(age(N),a_correct))

Undefined function 't' for input arguments of type 'double'. Error in age (line 3) a = t(find(mod(N + nines,10)==0))/10; Error in Test5 (line 3) assert(isequal(age(N),a_correct))

Suggested Problems

More from this Author1