Cody

Solution 1252409

Submitted on 17 Aug 2017 by Chris Cleveland
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
w=1200; r=20; y_correct = 800; assert(isequal(salt(w,r),y_correct))

2   Pass
w=900; r=25; y_correct = 540; assert(isequal(salt(w,r),y_correct))

3   Pass
w=1200; r=20; y_correct = 800; assert(isequal(salt(w,r),y_correct))

4   Pass
w=1200; r=25; y_correct = 720; assert(isequal(salt(w,r),y_correct))

5   Pass
w=1200; r=50; y_correct = 400; assert(isequal(salt(w,r),y_correct))

6   Pass
w=900; r=50; y_correct = 300; assert(isequal(salt(w,r),y_correct))

Suggested Problems