Question

In: Computer Science

MATLAB Suppose that $2000.00 is left to sit in a bank account that initially pays 7%...

MATLAB

Suppose that $2000.00 is left to sit in a bank account that initially pays 7% interest per year, compounded annually. However, if the balance in the account exceeds $10000.00, the interest rate increases to 9%. Write a code that does the calculation of account balance after every year, and stores it in a vector balaceV.

What will be the value of the vector after 30 years of saving? Plot the resulting vector versus time (years), using any style you like (line/points/bars). Make sure that the vector's first value of balance (meaning the initial deposit at time=0) is also included, so the resulting vector for 30 years should contain 31 elements. The x-axis should have values from 0 to 30.

Solutions

Expert Solution

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc
clear all
close all
format long
balanceV=[2000];
for i=2:31
if(balanceV(i-1)<=10000)
balanceV(i)=balanceV(i-1)*(1.07);
else
balanceV(i)=balanceV(i-1)*(1.09);
end
end
plot(0:30,balanceV);
xlabel('Time');
ylabel('Balance');
title('Plot of balance vs time');

Kindly revert for any queries

Thanks.


Related Solutions

You are considering investing in a bank account that pays a nominal annual rate of 7%,
You are considering investing in a bank account that pays a nominal annual rate of 7%, compounded monthly. If you invest $3,000 at the end of each month, how many months will it take for your account to grow to $150,000?An uncle of yours who is about to retire wants to sell some of his stock and buy an annuity that will provide him with income of $50,000 per year for 30 years, beginning a year from today. The going...
1. If you deposit $8,177 in a bank account that pays 7% interest compounded monthly, how...
1. If you deposit $8,177 in a bank account that pays 7% interest compounded monthly, how much will be in your account after 8 years? Please round your answer to the second decimal without dollar sign (e.g. 0.00) 2. If you deposit your money in a bank account that pays 8.66% interest compounded weakly, what is the effective annual rate (EAR)? Please round your answer to the fourth decimal (e.g. 0.0000) 3. If you plan to apply for a PhD...
13.Suppose you deposit $5,000 into your bank account today. If the bank pays 3.75percent per year,...
13.Suppose you deposit $5,000 into your bank account today. If the bank pays 3.75percent per year, then which of the following statements is (are) correct? (x)$7,825.14is in your account after 12years if interest is compounded quarterly but only $7,777.27if the interest is compounded annually.(y)You will earn an additional $31.69of interest in your account after 12years if interest is compounded semi-annually instead of annually, but $27.10less interest if interest is compounded semi-annually instead of monthly.(z)Although compounding daily instead of weekly will...
Suppose you deposited $50,000 in a bank account that pays 8.25% with monthly compounding. How much...
Suppose you deposited $50,000 in a bank account that pays 8.25% with monthly compounding. How much would be in the account after 7 months? Show all your work
Suppose you deposited $50,000 in a bank account that pays 8.25% with monthly compounding. How much...
Suppose you deposited $50,000 in a bank account that pays 8.25% with monthly compounding. How much would be in the account after 7 months?
When a bank account pays compound interest, it pays interest not only on the principal amount...
When a bank account pays compound interest, it pays interest not only on the principal amount that was deposited into the account, but also on the interest that has accumulated over time. Suppose you want to deposit some money into a savings account, and let the account earn compound interest for a certain number of years. The formula for calculating the balance of the account after a specified number of years is: A=P (1+rn)ntA=P (1+rn)nt The terms in the formula...
Bank A pays 7% interest compounded annually on deposits, while Bank B pays 6% compounded daily....
Bank A pays 7% interest compounded annually on deposits, while Bank B pays 6% compounded daily. a. Based on the EAR (or EFF%), which bank should you use? You would choose Bank A because its EAR is higher. You would choose Bank B because its EAR is higher. You would choose Bank A because its nominal interest rate is higher. You would choose Bank B because its nominal interest rate is higher. You are indifferent between the banks and your...
An individual initially deposits $4,000 into an account that pays interest at 8% per year compounded...
An individual initially deposits $4,000 into an account that pays interest at 8% per year compounded quarterly. A $200 deposit is made in the first month of the second year with deposits increasing by $40 per month until the end of the third year. Beginning in the first month of the fifth year, withdrawals of $100 per month are taken out of the account until the end of the fifth year. Compute the amount of money in the account to...
Initially, $2000 is deposited into a retirement account which pays 5% interest per year, compounded continuously....
Initially, $2000 is deposited into a retirement account which pays 5% interest per year, compounded continuously. New money is added to the account at the rate of $1000 per year. How much will be in the account after 10 years? Please use the method of ordinary differential equations to setup and complete the problem. Also please show all steps and work clearly so I can follow your logic and learn to solve similar ones myself. I will rate your answer...
1) Suppose you deposited $10,000 into a savings account today. The account pays a nominal annual...
1) Suppose you deposited $10,000 into a savings account today. The account pays a nominal annual interest rate of 12%, but interest is compounded quarterly. Assuming that you make no additional deposits into or withdrawals from the account, what will your ending balance be 10 years from today? 2) A firm expects to pay dividends at the end of each of the next four years of $2.00, $2.50, $2.50, and $3.50.  If growth is then expected to be constant at 8...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT