Cody

Solution 2064515

Submitted on 19 Dec 2019 by Asif Newaz
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
vf = 5.5; vp = 6; N = 1; winner = 'Pete'; assert(isequal(chickenRace(vf,vp,N),winner))

b = 16.6667 a = 17.1818

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

b = 16.6667 a = 16.1818

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

b = 16.6667 a = 14.6667

Suggested Problems

More from this Author25