Cody

Solution 599567

Submitted on 20 Mar 2015 by Alexander Razmyslov
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
%% a = {'$12,001.87','$0.04','$103,887.55','$0.32'}; b = 115889.78; assert(abs(moneySum(a)-b) < 1e-4)

a = {1x7 cell} {1x3 cell} {1x8 cell} {1x3 cell} num = 1200187 num = 1200187 4 num = 1200187 4 10388755 num = 1200187 4 10388755 32 ans = 1.1589e+05

2   Pass
%% a = {'$0.02'}; b = 0.02; assert(abs(moneySum(a)-b) < 1e-4)

a = {1x3 cell} num = 2 ans = 0.0200

3   Pass
%% a = {'$81.47','$12.69','$91,337.60'}; b = 91431.76; assert(abs(moneySum(a)-b) < 1e-4)

a = {1x4 cell} {1x4 cell} {1x7 cell} num = 8147 num = 8147 1269 num = 8147 1269 9133760 ans = 9.1432e+04