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)^T
Principal is the original investment in the savings account, Rate is the annual 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).
NOTE: the periodic rate r in the expression (1 + r) must match the duration of the period. That is, a monthly period must use a monthly rate. When Rate is expressed as an Annual Percentage Rate (APR), then a monthly rate r is Rate/12.
Write a program in C++ that asks for the principal, the interest rate, and the number of times the interest is compounded. It should display a formatted report similar to
Interest Rate: 4.25%
Times Compounded: 12
Principal: $ 1000.00
Interest: $ 43.34
Amount in Savings: $ 1043.34
RUN THE FOLLOWING TEST CASES:
1) $ 5000 at 7.5% compounded 4 times.
2) $ 7500 at 5.2 % compounded 12 times.
3) $ 1000 at 10 % compounded(daily) 360 times.
C++ Program:
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double rate,interest,principal,amount;
int times;
cout<<"Interest Rate: ";
cin>>rate;
cout<<"Times compunded: ";
cin>>times;
cout<<"Principal: $";
cin>>principal;
rate=rate/100;
interest=principal*pow((1+rate/times),times)-principal;
amount=principal+interest;
cout<<"Interest: $"<<interest<<endl;
cout<<"Amount in Savings: $"<<amount<<endl;
return 0;
}




if you like the answer please provide thumbs up.
Assuming there are no deposits other than the original investment, the balance in a savings account...
I NEED THE PSEUDOCODE New Balance = Principal * (1 + rate/T)T Principal is the opening balance in the 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 prompts the user for the principal, the interest rate, and the number of times the interest is compounded. The output must be formatted in the following format: Interest...
A friend wants to deposit $2000 into a savings account. She goes to two banks and is offered competing interest rates for the account. Bank 1 has a 10% interest rate, and compounds once annually. Bank 2 has an 9% interest rate, but compounds monthly. Use the following annually compounded interest formula, A=P(1+r)^t where A is the accumulated amount, P is the principal amount deposited, r is the annual interest rate (as a decimal) and t is the number of...
A friend wants to deposit $2000 into a savings account. She goes to two banks and is offered competing interest rates for the account. Bank 1 has a 10% interest rate, and compounds once annually. Bank 2 has an 9% interest rate, but compounds monthly. Use the following annually compounded interest formula, A=P(1+r)t where A is the accumulated amount, P is the principal amount deposited, r is the annual interest rate (as a decimal) and t is the number of...
Number 16. Chapter 3 Problem Comes from "Starting out with
>>> C++ From Control Structures through Objects" Ninth
Edition. Checking work
Programming Challenges 147 16. Senior Citizen Property Tax Madison County provides a $5,000 homeowner exemption for its senior citizens. For example, if a senior's house is valued at $158,000, its assessed value would be $94,800, as explained above. However, he would only pay tax on $89,800. At last year's tax rate of $2.64 for cach $100 of assessed value,...
Numerical Methods (matlab code)
QUESTION 2 A friend wants to deposit $2000 into a savings account. She goes to two banks and is offered competing interest rates for the account. Bank 1 has a 10% interest rate, and compounds once annually. Bank 2 has an 9% interest rate, but compounds monthly. Use the following annually compounded interest formula, A= P(1+r) where A is the accumulated amount, P is the principal amount deposited, r is the annual interest rate (as a...
14.Compound Interest hank account pays compound interest, it pays interest not only on the principal amount that was deposited into the account, but also on the interest that has accumulated over time. Suppose you want to deposit some money into a savings account, and let the account earn compound interest for a certain number of years. The formula for calculating the balance of the account afer a specified namber of years is The terms in the formula are A is...
C++
18. Savings Account Balance Write a program that calculates the balance of a savings account at the end of a three month period. It should ask the user for the starting balance and the annual interest rate. A loop should then iterate once for every month in the period, performing the following A) Ask the user for the total amount deposited into the account during that month. Do not accept negative numbers. This amount should be added to the...
i need this to be in OOP using C++
25. Savings Account Balance Write a program that calculates the balance of a savings account at the end of a three-month feried. It should ask the user for the starting balance and the annual interest rate. A loop abculd then iterate once for every month in the period, performing the following steps: B) A) Ask the user for the total amount deposited into the account during that month and add it...
4 pts The principal represents an amount of money deposited in a savings account subject to compound Interest at the given rate. Find how much money will be in the account after the given number of years (Assume 360 days in a year.), and how much interest was earned. Au p(2.5) Principal: $3500 Rate: 4.5% Compounded: monthly Time: 4 years amount in account: $3552.2; interest earned: $52,80 amount in account: $4865.38; interest earned: 5673.82 amount in account: $3660.79; interest earned:...
Question 1 A bank features a savings account that has an annual percentage rate of r = 4.5% with interest compounded quarterly. Logan deposits $11,000 into the account. The account balance can be modeled by the exponential formula S(t) = P(1+)", nt Th where S is the future value, P is the present value, r is the annual percentage rate written as a decimal, n is the number of times each year that the interest is compounded, and t is...