Question: you will implement the simulate_account_balance function. The function has the following parameters: init_principal: A float indicating the initial principal balance. acc_rate: A float indicating the
you will implement the simulate_account_balance function. The function has the following parameters:
init_principal: A float indicating the initial principal balance.
acc_rate: A float indicating the interest rate per year (e.g., 0.05 for 5%).
acc_cmp_freq: An int indicating the number of times interest is applied per year.
setup_fee: A float indicating the amount of dollars that is deduced from the init_principal when the account is set up (you only deduct once).
years: An int indicating the number of years for which we would like to run the report.
Based on the provided arguments, the function will print one or more lines each of which displays two values - year number (starting from 2) and current balance on the account - separated by a space.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
