Question: Develop a program to calculate the interest. Every month the interest is balance*(1+Rate/12). For example, if the starting balance is $1000 and the annual interest

Develop a program to calculate the interest. Every month the interest is balance*(1+Rate/12). For example, if the starting balance is $1000 and the annual interest rate is 3%, the monthly interest is 1000*(1+0.03/12). So, after the first month, the balance becomes 1000*(1+0.03/12)=1002.5. Next month, the balance starts at $1002.5, the monthly interest is 1002.5*(1+0.03/12), which is 1005.01. In other words, every month the interest is added to the balance, making your monthly interest more and more. To calculate your annual interest income (which is called yield), you need to do balance=balance*(1+rate/12) 12 times.

You are expected to use while loop (not for loop) to help the user to figure out what the final balance is after 12 months. In other words, use a while loop to do the balance=balance*(1+rate/12) 12 times. The program should ask the user to enter the initial balance (like you want to save $1000 into your account) and the annual interest rate. The program should display "Your balance after 12 month is $xxxx.xx"

need answer in C++ not in PYTHON

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!