Cody

Problem 2454. birthday on same day of week

Solution 2149228

Submitted on 3 Mar 2020 by Nikolaos Nikolaou
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
% mm-dd-yyyy format

2   Pass
assert(isequal(birthDay('7-20-2014'),2025));

n = 1×3 cell array {'7'} {'20'} {'2014'} age = 2025

3   Pass
assert(isequal(birthDay('5-6-2014'),2025));

n = 1×3 cell array {'5'} {'6'} {'2014'} age = 2025

4   Pass
assert(isequal(birthDay('1-1-2013'),2019));

n = 1×3 cell array {'1'} {'1'} {'2013'} age = 2019

5   Pass
assert(isequal(birthDay('5-1-2010'),2021));

n = 1×3 cell array {'5'} {'1'} {'2010'} age = 2021

6   Pass
assert(isequal(birthDay('11-4-1989'),1995));

n = 1×3 cell array {'11'} {'4'} {'1989'} age = 1995

Suggested Problems

More from this Author44

Community Treasure Hunt

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

Start Hunting!