Question
Write a MATLAB script that will calculate the amount of money that accumulates in a money market account in one year. The program must accept
Write a MATLAB script that will calculate the amount of money that accumulates in a money market account in one year. The program must accept the following input from the user:
- The initial deposit
- The frequency of interest compounding. The choice are:
- Monthly
- Quarterly
- Semiannually
- Annually
- The interest rate
Use a switch command to choose between the frequency of compounding options. Let the user know if they have not correctly selected one of the four options. Run the script using the following inputs: initial deposit = $1000, the interest rate is 5%.
NOTE: You will need to research the appropriate equations on your own
Answers: For the above options the total deposit will have grown to:
- Monthly = $1.0512e+03
- Quarterly = $1.0509e+03
- Semiannually = $1.0506e+03
- Annually = $1050
Step 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