Cody

Solution 1989170

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

w1 = 16.6667 w2 = 17.1818

Output argument "winner" (and maybe others) not assigned during call to "chickenRace". Error in Test1 (line 5) assert(isequal(chickenRace(vf,vp,N),winner))

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

w1 = 16.6667 w2 = 16.1818

Output argument "winner" (and maybe others) not assigned during call to "chickenRace". Error in Test2 (line 5) assert(isequal(chickenRace(vf,vp,N),winner))

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

w1 = 16.6667 w2 = 14.6667

Output argument "winner" (and maybe others) not assigned during call to "chickenRace". Error in Test3 (line 5) assert(isequal(chickenRace(vf,vp,N),winner))

Suggested Problems

More from this Author25