Cody

Problem 44087. Percentage profit:2

Solution 1258073

Submitted on 27 Aug 2017
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
x = 1; r1=10; r2=10; y_correct = 1; assert(isequal(your_fcn_name(x,r1,r2),y_correct))

y = 0

Assertion failed.

2   Fail
x = 1; r1=0; r2=10; y_correct = 1.1; assert(isequal(your_fcn_name(x,r1,r2),y_correct))

y = 0

Assertion failed.

3   Fail
x = .81; r1=-19; r2=10; y_correct = 1.1; assert(isequal(your_fcn_name(x,r1,r2),y_correct))

y = 0

Assertion failed.

Suggested Problems

More from this Author5

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!