Cody

Solution 1743101

Submitted on 5 Mar 2019 by Athi
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 = 50; rt=40; r1=20; y_correct = 60; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

2   Pass
x = 20; rt=40; r1=20; y_correct = 45; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

3   Pass
x = 60; rt=40; r1=20; y_correct = 70; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

4   Pass
x = 60; rt=80; r1=40; y_correct = 140; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

5   Pass
x = 60; rt=40; r1=40; y_correct = 40; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

6   Pass
x = 20; rt=20; r1=40; y_correct = 15; assert(isequal(your_fcn_name(x,r1,rt),y_correct))