Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
vf = 5.5;
vp = 6;
N = 1;
winner = 'Pete';
assert(isequal(chickenRace(vf,vp,N),winner))
winner =
-0.5152
winner =
'Fred'
|
2 | Pass |
vf = 5.5;
vp = 6;
N = 2;
winner = 'Fred';
assert(isequal(chickenRace(vf,vp,N),winner))
winner =
0.4848
winner =
'Fred'
|
3 | Pass |
vf = 6;
vp = 6;
N = 2;
winner = 'Fred';
assert(isequal(chickenRace(vf,vp,N),winner))
winner =
2.0000
winner =
'Fred'
|
213 Solvers
424 Solvers
154 Solvers
Back to Basics - Find no. of elements in a matrix?
216 Solvers
137 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!