Problem 44932. Compound Interest Rate Calculation With Yearly Deposition Into A Bank Account
The problem adds a twist to the compound interest calculation by having the bank account owner depositing a fixed amount of money annually. The interest rate is compounded annually.
This function allows the user to input four variable inputs: the principle amount in the account (principle_amount), the yearly addition/deposition (yearly_deposition), the number of years elapsed (number_years), and the yearly interest rate (interest_rate) in decimals eg. 0.05 for a 5% interest rate.
It outputs the total amount y (in the bank account) after the number of years elapsed.
Solution Stats
Problem Comments
-
1 Comment
Please don't use isequal() to compare floating-point numbers.
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2347 Solvers
-
490 Solvers
-
Back to basics 21 - Matrix replicating
1693 Solvers
-
Generate a random matrix A of (1,-1)
362 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
801 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!