Cody

Solution 1648848

Submitted on 16 Oct 2018 by Yu Han
  • Size: 8
  • This is the leading solution.
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
a=6; b=12; y_correct=30 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 30 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
a=7; b=14; y_correct=35 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 35 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
a=3; b=6; y_correct=15 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 15 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

4   Pass
a=5; b=40; y_correct=65 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 65 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)]

5   Pass
a=5; b=90; y_correct=125 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 125 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)]

6   Pass
a=12; b=54; y_correct=102 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 102 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)]

7   Pass
a=16; b=18; y_correct=58 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 58 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)]

8   Pass
a=16; b=72; y_correct=136 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 136 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)]

Suggested Problems

More from this Author13