Cody

Solution 1164855

Submitted on 17 Apr 2017
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
N=3; R=100; V=12; reading_correct = 6; reading = ladder(N,R,V); assert(abs(reading-reading_correct)<1000*eps)

Assertion failed.

2   Fail
N=3; R=100; V=120; reading_correct = 60; reading = ladder(N,R,V); assert(abs(reading-reading_correct)<1000*eps)

Assertion failed.

3   Fail
N=5; R=100; V=100; reading_correct = 20; reading = ladder(N,R,V); assert(abs(reading-reading_correct)<1000*eps)

Assertion failed.