Cody

# Problem 44474. I hope to lose weight healthily...

Solution 1609743

Submitted on 15 Aug 2018 by Srishti Saha
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
before = 54.3; after = 46.5; y_correct = 4; assert(isequal(fcn(before,after),y_correct))

month = 0 before = 52.1280 month = 1 before = 50.0429 month = 2 before = 48.0412 month = 3 before = 46.1195 month = 4 month = 4

2   Pass
before = 65.0; after = 50.0; y_correct = 7; assert(isequal(fcn(before,after),y_correct))

month = 0 before = 62.4000 month = 1 before = 59.9040 month = 2 before = 57.5078 month = 3 before = 55.2075 month = 4 before = 52.9992 month = 5 before = 50.8793 month = 6 before = 48.8441 month = 7 month = 7

3   Pass
before = 95.7; after = 55.5; y_correct = 14; assert(isequal(fcn(before,after),y_correct))

month = 0 before = 91.8720 month = 1 before = 88.1971 month = 2 before = 84.6692 month = 3 before = 81.2825 month = 4 before = 78.0312 month = 5 before = 74.9099 month = 6 before = 71.9135 month = 7 before = 69.0370 month = 8 before = 66.2755 month = 9 before = 63.6245 month = 10 before = 61.0795 month = 11 before = 58.6363 month = 12 before = 56.2909 month = 13 before = 54.0392 month = 14 month = 14