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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!