Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 414844

Submitted on 7 Mar 2014 by Mehmet OZC

Correct

53Size
Leading solution size is 23.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = '01-Jan-2014';
y = '14-Feb-2014';
z = 2000;
salary = 8000;
assert(isequal(AllAboutMoney_Honey(x,y,z),salary))

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

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

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