Cody

Problem 46883. speed limit alert

Solution 3256263

Submitted on 17 Oct 2020 by William
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=75; Y=1; Italy=110; y_correct = 1; assert(isequal(ticket(X,Y,Italy),y_correct))

2   Pass
X=150; Y=2; US=130; y_correct = 0; assert(isequal(ticket(X,Y,US),y_correct))

3   Pass
X=200; Y=0.5; Germany=inf; y_correct = 0; assert(isequal(ticket(X,Y,Germany),y_correct))

Suggested Problems

More from this Author33

Community Treasure Hunt

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

Start Hunting!