Cody

Solution 995791

Submitted on 5 Oct 2016 by Bert
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
vf = 5.5; vp = 6; N = 1; winner = 'Pete'; assert(isequal(your_fcn_name(vf,vp,N),winner))

tf = 17.1818 tp = 16.6667

2   Pass
vf = 5.5; vp = 6; N = 2; winner = 'Fred'; assert(isequal(your_fcn_name(vf,vp,N),winner))

tf = 16.1818 tp = 16.6667

3   Pass
vf = 6; vp = 6; N = 2; winner = 'Fred'; assert(isequal(your_fcn_name(vf,vp,N),winner))

tf = 14.6667 tp = 16.6667

Suggested Problems

More from this Author25