Cody

Problem 2499. Airline Ticket Mod7 Checksum

Solution 3878198

Submitted on 27 Nov 2020
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   Fail
T=1234567891011; b_correct=0; assert(isequal(isTicketValid(T),b_correct))

m = logical 0

Output argument "b" (and maybe others) not assigned during call to "isTicketValid". Error in Test1 (line 3) assert(isequal(isTicketValid(T),b_correct))

2   Fail
T=2355211846932; b_correct=0; assert(isequal(isTicketValid(T),b_correct))

m = logical 0

Output argument "b" (and maybe others) not assigned during call to "isTicketValid". Error in Test2 (line 3) assert(isequal(isTicketValid(T),b_correct))

3   Fail
T=2355211846934; b_correct=1; assert(isequal(isTicketValid(T),b_correct))

m = logical 0

Output argument "b" (and maybe others) not assigned during call to "isTicketValid". Error in Test3 (line 3) assert(isequal(isTicketValid(T),b_correct))

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!