Write a MATLAB code to solve the following: One bank pays 5.5 percent annual int
ID: 3632587 • Letter: W
Question
Write a MATLAB code to solve the following:One bank pays 5.5 percent annual interest, while a second bank pays 4.5 percent annual
interest. Determine how much longer (in years) it will take to accumulate at least $50,000 in the second bank if you deposit $1000 initially, and $1000 at the end of each year.
– Use the following equation to calculate the principle balance due to interest being paid,
p, at the end of each one year period: p = p*(1+r/100), where r is the interest rate
– Use two while loops in your code