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)
Show older comments
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?
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!