Cody

Problem 42981. Angle difference between Hour Hand and Minute Hand of clock

Solution 3007723

Submitted on 30 Sep 2020 by Rafael S.T. Vieira
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))

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

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

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

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

Suggested Problems

More from this Author6

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!