Cody

Solution 1571981

Submitted on 30 Jun 2018 by bainhome
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
d = 4; r = 1; s = 1; degrees_correct = 60; degrees = round(jogging(d,r,s)); assert(degrees==degrees_correct)

2   Pass
d = 5; r = 1; s = 1; degrees_correct = 66; degrees = round(jogging(d,r,s)); assert(degrees==degrees_correct)

3   Pass
d = 6; r = 1; s = 1; degrees_correct = 71; degrees = round(jogging(d,r,s)); assert(degrees==degrees_correct)

4   Pass
d = 7; r = 1; s = 1; degrees_correct = 73; degrees = round(jogging(d,r,s)); assert(degrees==degrees_correct)

5   Pass
d = 8; r = 1; s = 1; degrees_correct = 76; degrees = round(jogging(d,r,s)); assert(degrees==degrees_correct)

6   Pass
d = 7; r = 1; s = 2; degrees_correct = 55; degrees = round(jogging(d,r,s)); assert(degrees==degrees_correct)