Cody

# Problem 2196. Tax Season ! How much is my salary?

Solution 2874971

Submitted on 24 Aug 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
x = '01-Jan-2014'; y = '14-Feb-2014'; z = 2000; salary = 8000; assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

Unrecognized function or variable 'seq'. Error in AllAboutMoney_Honey (line 7) ceil(sum(weekday(seq) == 6) / 2) * z; Error in Test1 (line 5) assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

2   Fail
x = '14-Feb-2013'; y = '29-Apr-2013'; z = 3599; salary = 21594; assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

Unrecognized function or variable 'seq'. Error in AllAboutMoney_Honey (line 7) ceil(sum(weekday(seq) == 6) / 2) * z; Error in Test2 (line 5) assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

3   Fail
x = '01-Jan-2012'; y = '31-Dec-2012'; z = 500; salary = 13000; assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

Unrecognized function or variable 'seq'. Error in AllAboutMoney_Honey (line 7) ceil(sum(weekday(seq) == 6) / 2) * z; Error in Test3 (line 5) assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

4   Fail
x = '13-Dec-2011'; y = '28-Jan-2012'; z = 654; salary = 2616; assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

Unrecognized function or variable 'seq'. Error in AllAboutMoney_Honey (line 7) ceil(sum(weekday(seq) == 6) / 2) * z; Error in Test4 (line 5) assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

### Community Treasure Hunt

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

Start Hunting!