Cody

Solution 1151629

Submitted on 1 Apr 2017 by H M Dipu Kabir
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
x = '12:00'; y_correct = 0; assert(isequal(AngleDifference(x),y_correct))

mn = 0 hr = 0 y = 0 y = 0

2   Pass
x = '14:00'; y_correct = 60; assert(isequal(AngleDifference(x),y_correct))

mn = 0 hr = 60 y = 60 y = 60

3   Pass
x = '10:10'; y_correct = 115; assert(isequal(AngleDifference(x),y_correct))

mn = 60 hr = 305 y = 245 y = 115

4   Pass
x = '23:59'; y_correct = 5.5; assert(isequal(AngleDifference(x),y_correct))

mn = 354 hr = 359.5000 y = 5.5000 y = 5.5000

5   Pass
x = '5:30'; y_correct = 15; assert(isequal(AngleDifference(x),y_correct))

mn = 180 hr = 165 y = 15 y = 15