Cody

# Problem 44473. Let's make puddings !

Solution 1395149

Submitted on 27 Dec 2017
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 = 3; y = 300; z = 300; C = 2; assert(isequal(Egg_Milk_Sugar(x,y,z),C))

Error using idivide>idivide_check (line 79) At least one argument must belong to an integer class. Error in idivide (line 42) idivide_check(a,b); Error in Egg_Milk_Sugar (line 2) Puddings = min([x idivide(y,140,'floor') idivide(z,15,'floor')]); Error in Test1 (line 5) assert(isequal(Egg_Milk_Sugar(x,y,z),C))

2   Fail
x = 0; y = 999; z = 999; C = 0; assert(isequal(Egg_Milk_Sugar(x,y,z),C))

Error using idivide>idivide_check (line 79) At least one argument must belong to an integer class. Error in idivide (line 42) idivide_check(a,b); Error in Egg_Milk_Sugar (line 2) Puddings = min([x idivide(y,140,'floor') idivide(z,15,'floor')]); Error in Test2 (line 5) assert(isequal(Egg_Milk_Sugar(x,y,z),C))

3   Fail
x = 12; y = 1000; z = 100; C = 6; assert(isequal(Egg_Milk_Sugar(x,y,z),C))

Error using idivide>idivide_check (line 79) At least one argument must belong to an integer class. Error in idivide (line 42) idivide_check(a,b); Error in Egg_Milk_Sugar (line 2) Puddings = min([x idivide(y,140,'floor') idivide(z,15,'floor')]); Error in Test3 (line 5) assert(isequal(Egg_Milk_Sugar(x,y,z),C))