Question: c++ -always use braces to define blocks -use meaningful variable names following camelCase convention -do not use infinite loop conditions, such as while (1), etc.
c++
-always use braces to define blocks
-use meaningful variable names following camelCase convention
-do not use infinite loop conditions, such as while (1), etc.

Problem 3 Interest Earned 12 points Assuming there are no deposits other than the original investment, the balance in a savings account after one year may be calculated as: Amount-Principal . (1 + (Rate / T Principal is the balance in the savings account, Rate is the interest rate, and T is the number of times the interest is compounded during a year (T is 4 if the interest is compounded quarterly). Write a program that asks for the principal, the interest rate, and the number of times the interest rate is compounded. Format your output nicely that all numbers and decimals align as shown in INPUT Interest Rate Times Compounded: 12 Initial Investment: 1000 4.25 OUTPUT Principal: interest at 4.25%:$ 43.34 Amount in Savings: 1043.34 1000.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
