Cody

Solution 997501

Submitted on 6 Oct 2016 by Kurt Masvidal
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

y = 20 y = 0

2   Pass
x = 7; y_correct = 7; % x_coordinate=0+7 assert(isequal(your_fcn_name(x),y_correct))

y = 20 y = 7

3   Pass
x = 13; y_correct = 20;% x_coordinate=7+13 assert(isequal(your_fcn_name(x),y_correct))

y = 20

4   Pass
x = 4; y_correct = 20; assert(isequal(your_fcn_name(x),y_correct))

y = 20

5   Pass
x = 5; y_correct = 25;% x_coordinate=20+5 assert(isequal(your_fcn_name(x),y_correct))

y = 20 y = 25