Info

This question is closed. Reopen it to edit or answer.

How to use switch case and a loop together?

1 view (last 30 days)
Matthew Quinones
Matthew Quinones on 21 Apr 2014
Closed: Sean de Wolski on 21 Apr 2014
Write a program that calculates the amount of money accumulated in a savings account in one year. The program should input the initial deposit and the interest rate. The program should also input the frequency of compounding (options are monthly, quarterly, semiannually, and annually). Use the switch structure and a loop. Write an appropriate output statement.
I understand that I need to start with an input of the initial deposit and interest rate. Then I am going to use a menu to choose which kind of interest. I am just not sure how to format a loop with switch cases.
Any advice on where to begin?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!