Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that 10(1)- . Pn(x) 2 + - 9(x) 12 log 2

Answered: 1 week ago