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
|
895 Solvers
Area of an equilateral triangle
2759 Solvers
270 Solvers
615 Solvers
Determine point is located in a circle or not
75 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!