Question

MATLAB QUESTION: You want to invest $10,000 until your balance is at least $15,000. You have...

MATLAB QUESTION:

You want to invest $10,000 until your balance is at least $15,000. You have a choice between two banks to invest in. Bank A offers 13% interest, compouned yearly. Bank B offers 1% interest compouned monthly. Compouned yearly means the interest is calculated and deposited in the account just once per year, as opposed to monthly which is done 12 times per year.

Write a single script file for parts a and b.

A. Use separate while loops to calculate the balance of your investment in both banks. Keep track of the years/months it takes to reach the goal of $15000.

B. Use if statements to determine which bank is the better investment choice. The output of your script should be formatted as follows filling the blanks with the correct values. Dollar amounts should be precise to 2 decimal places:

Format:

Bank __ is the better choice.

Balance is $___._ after __ months.

(Please explain code a little)

Homework Answers

Answer #1

Fromula for compound interest is A = P (1+r)n

Bank A: Bank B:

Amount = 15,000

Principal = 10,000

Rate = 13% or 0.13

15000=10000(1+0.13)n

15000/10000=1.13n

log(15000/10000)=nlog1.13

n=log(1.5)/log(1.13)

n= 0.405/0.1222

n = 3.314

Time is 3.314 years

Amount = 15,000

Principal = 10,000

Rate = 1%, compounded monthly

15000=10000(1+0.01)n

15000/10000=1.01n

log(15000/10000)=nlog1.01

n=log(1.5)/log(1.01)

n= 0.405/0.00995

n = 40.704

n = frequency*time

40.704=12*time

Time = 40.704/12

Time = 3.392 years

Bank A is better choice as we can generate required amount in 3.314 years

Balance is $15,000 in 3.314 years

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
For how many months do you need to invest your money into a bank account earning...
For how many months do you need to invest your money into a bank account earning an annual interest rate of 11.5% compounded monthly if you want to triple your investment? months (Note: Your answer should be an integer)
Question 1 (50%): elaborate on the answers a. You want to borrow money and the bank...
Question 1 (50%): elaborate on the answers a. You want to borrow money and the bank offers an annual interest rate of 7.3% compounded monthly. What is the equivalent Effective Annual Rate (EAR)? (10%) b. A broker is presenting you with two different investment opportunities. Which one would you choose to invest it and why? Opportunity A: Invest $13,000 today and receive $20,000 after 8 years from now. Opportunity B: Invest in a financial instrument that will provide you with...
Question 2 (11 marks) You are a young personal financial adviser. Molly, one of your clients...
Question 2 You are a young personal financial adviser. Molly, one of your clients approached you for consultation about her plan to save aside $450,000 for her child’s higher education in United States 15 years from now. Molly has a saving of $120,000 and is considering different alternative options: Investment 1: Investing that $120,000 in a saving account for 15 years. There are two banks for her choice. Bank A pays a rate of return of 8.5% annually, compounding semi-annually....
You are a young personal financial adviser. Molly, one of your clients approached you for a...
You are a young personal financial adviser. Molly, one of your clients approached you for a consultation about her plan to save aside $450,000 for her child’s higher education in the United States 15 years from now. Molly has a saving of $120,000 and is considering different alternative options: Investment 1: Investing that $120,000 in savings account for 15 years. There are two banks for her choice. Bank A pays a rate of return of 8.5% annually, compounding semi-annually. Bank...
Part 2 (matlab) Functions Many of you will have some form of a loan during your...
Part 2 (matlab) Functions Many of you will have some form of a loan during your lifetime, either a student loan, mortgage, credit card debt, or other loan. If you never do have a loan, great! But you may have to calculate a payment for someone else, such as the company you work for. Such a loan will have a principal amount (called the present value), an interest rate, and a number of periods for the loan. The formula to...
1. After carefully going over your budget, you have determined you can afford to pay $632...
1. After carefully going over your budget, you have determined you can afford to pay $632 per month toward a new sports car. You call up your local bank and find out that the going rate is 1 percent per month for 50 months. How much can you borrow? 2. Suppose you wish to start up a business that specializes in the latest health food trend, frozen milk. To produce and market your product, the Yakee Doodle Dandy, you need...
Question 2. You have approached Commonwealth Bank for a loan to buy a house. The bank...
Question 2. You have approached Commonwealth Bank for a loan to buy a house. The bank offers you a $500 000 loan, repayable in equal monthly instalments at the end of each month for the next 30 years. Required: a. If the interest rate on the loan is 4.5% per annum, compounded monthly, what is your monthly repayment (to the nearest dollar)? b. What is your weekly payment if you wish to pay weekly instalments and the interest rate is...
You are a young personal financial adviser. Molly, one of your clients approached you for consultation...
You are a young personal financial adviser. Molly, one of your clients approached you for consultation about her plan to save aside $450,000 for her child’s higher education in United States 15 years from now. Molly has a saving of $120,000 and is considering different alternative options: Investment 1: Investing that $120,000 in a saving account for 15 years. There are two banks for her choice. Bank A pays a rate of return of 8.5% annually, compounding semi-annually. Bank B...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
What role could the governance of ethics have played if it had been in existence in...
What role could the governance of ethics have played if it had been in existence in the organization? Assess the leadership of Enron from an ethical perspective. THE FALL OF ENRON: A STAKEHOLDER FAILURE Once upon a time, there was a gleaming headquarters office tower in Houston, with a giant tilted "£"' in front, slowly revolving in the Texas sun. The Enron Corporation, which once ranked among the top Fortune 500 companies, collapsed in 2001 under a mountain of debt...