Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do in Matlab (octave) 1. You are in charge of managing the cash account for your company, which initially has no money in it. Suppose
Do in Matlab (octave)
1. You are in charge of managing the cash account for your company, which initially has no money in it. Suppose your company plans to save a portion of their monthly revenue over the next 5 years, according to the chart below: Year Monthly 4 3500 2000 2500 3000 4000 Deposit You expect to earn a small rate of interest compounded annually on the account. At the end of each year (after any interest is earned), if the account balance is at least $30000, you withdraw $20000 to invest in a mutual fund, which will pay a higher interest rate. Write a function that calculates the total amount of money that you will have after 5 years, with two inputs--the interest rate for your savings account and the interest rate for the mutual fund. Test your function for an interest rate of 3% on the cash account and an interest rate of 8% on the money in the mutual fund. How much total cash will you have (including the cash account and the mutual fund investment)? To get full credit, you must use a loop structure for thisStep 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