Cody

Solution 1604877

Submitted on 9 Aug 2018
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))

ans = 7000

Assertion failed.

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

ans = 1.9794e+04

Assertion failed.

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

ans = 13000

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

ans = 2289

Assertion failed.