Cody

Solution 1691826

Submitted on 13 Dec 2018 by HH
  • Size: 9
  • 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
x = 10; y = 5; y_correct = 2; assert(isequal(car_velocity_m_s(x,y),y_correct))

[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 car_velocity_m_s (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
x = 5; y = 5; y_correct = 1; assert(isequal(car_velocity_m_s(x,y),y_correct))

[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 car_velocity_m_s (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
x = 500; y = 10; y_correct = 50; assert(isequal(car_velocity_m_s(x,y),y_correct))

[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 car_velocity_m_s (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

4   Pass
x = 625; y = 25 y_correct = 25; assert(isequal(car_velocity_m_s(x,y),y_correct))

y = 25 [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 car_velocity_m_s (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)]

5   Pass
x = 75; y = 7.5 y_correct = 10; assert(isequal(car_velocity_m_s(x,y),y_correct))

y = 7.5000 [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 car_velocity_m_s (line 2) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)]

6   Pass
x = 42; y = 1; y_correct = 42; assert(isequal(car_velocity_m_s(x,y),y_correct))

[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 car_velocity_m_s (line 2) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)]

More from this Author1