Question
W11B - SAVINGS ACCOUNT Start with Dr. Lyvers .m file answer to ICE11B-Savings Account. Modify the code to be your answer to include the following
W11B - SAVINGS ACCOUNT Start with Dr. Lyvers .m file answer to ICE11B-Savings Account. Modify the code to be your answer to include the following corrections: (The rest of the problem remains the same as ICE11B. Dr. Lyvers .m file answer can be found in the answers to ICE11B)
1. In even number years, you deposit $500 in the middle of the year.
2. In years 5 and 9 you withdraw $2000 in the middle of the year.
Note: This is a 3 part question. Part 1: m-file, Part 2: Screenshot, Part 3: output value of P(13.3); Part 5 plot of account worth
Here is the code to use with the problem. How do I make the modifications to it? for the question above?
clear; clc
format ____ % set format to desired type
P(1) = ____; % opening balance/population
BR = ___; % Birth/Interest/growth rate as a decimal
DR = ___; % Death/fees/deprecation rate as a decimal
Period = __; % number of periods to iterate over
for t = 1:Period P(t+1) = P(t) + P(t)* (BR-DR); % any corrections as: P(t+1) = P(t+1)*___
end
P(length(P)) % Last value calculated
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started