Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program which will ask a user for a starting balance and annual interest rate for a savings accounts. The program will then provide
Write a program which will ask a user for a starting balance and annual interest rate for a savings accounts. The program will then provide the user a list of options to calculate the yearly, quarterly, monthly or daily interest rate. Depending on their selection, the program will then ask how projected balances would they like to see with interest included. For example, if they user selected monthly, and then enter 5 for projected balance, it would should them the balance for the next 5 months.
Ask user for starting balance($).
Ask user for the annual interest rate(%).
o Hint: you will need to convert percentage to decimal before calculations.
Show menu options for user to choose how they would like to calculate interest projections with the following choices:
o 1. Yearly
o 2. Quarterly
o 3. Monthly
o 4. Daily
Convert the interest rate according to the users selection.
o For example, if monthly is selected then the annual interest rate would need to be divided by 12 months.
Use a loop to calculate and print the new balance for the number of projections entered by the user.
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