Cody

Solution 2067633

Submitted on 23 Dec 2019
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))

a = 4 b = 6

Undefined function 'daysdif' for input arguments of type 'char'. Error in AllAboutMoney_Honey (line 6) c=daysdif(x,y) 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))

a = 5 b = 2

Undefined function 'daysdif' for input arguments of type 'char'. Error in AllAboutMoney_Honey (line 6) c=daysdif(x,y) 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))

a = 1 b = 2

Undefined function 'daysdif' for input arguments of type 'char'. Error in AllAboutMoney_Honey (line 6) c=daysdif(x,y) 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))

a = 3 b = 7

Undefined function 'daysdif' for input arguments of type 'char'. Error in AllAboutMoney_Honey (line 6) c=daysdif(x,y) Error in Test4 (line 5) assert(isequal(AllAboutMoney_Honey(x,y,z),salary))