Cody

Solution 2111113

Submitted on 30 Jan 2020 by Rohith PK
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)

m = 4 1 1 60 5 1 1 66 6 1 1 71 7 1 1 73 8 1 1 76 7 1 2 55

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

m = 4 1 1 60 5 1 1 66 6 1 1 71 7 1 1 73 8 1 1 76 7 1 2 55

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

m = 4 1 1 60 5 1 1 66 6 1 1 71 7 1 1 73 8 1 1 76 7 1 2 55

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

m = 4 1 1 60 5 1 1 66 6 1 1 71 7 1 1 73 8 1 1 76 7 1 2 55

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

m = 4 1 1 60 5 1 1 66 6 1 1 71 7 1 1 73 8 1 1 76 7 1 2 55

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

m = 4 1 1 60 5 1 1 66 6 1 1 71 7 1 1 73 8 1 1 76 7 1 2 55

Suggested Problems

More from this Author100