Cody

Solution 1863271

Submitted on 2 Jul 2019 by Tim
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
principle_amount = 1000; yearly_deposition = 1200; number_years = 50; interest_rate = 0.05; y_correct = 2.752458743867467e+05; assert(isequal(compound_interest(principle_amount, yearly_deposition, number_years, interest_rate),y_correct))

2   Pass
principle_amount = 5000; yearly_deposition = 5500; number_years = 10; interest_rate = 0.02; y_correct = 6.752290690850318e+04; assert(isequal(compound_interest(principle_amount, yearly_deposition, number_years, interest_rate),y_correct))