1. Using Python write a function for compounding interest. There should be three arguments to the function: a starting amount, a total interest rate, and the number of compounding periods. The function returns the ending value.
Notes: normally, interest rates are given per period, or annually. The total interest rate would be the per-period interest rate multiplied by the number of compounding periods. Or in your function, the per-period interest added is the total rate divided by the number of periods. If you take that simple concept (simple interest formula) and loop it by the number of periods, you can accumulate the ending amount. If you try to Google a formula for compound interest, it uses an exponent rather than a summation or loop, and it will be more difficult adapting it to work for the assignment (though it's possible).
Use your function to evaluate the following compounding interest scenarios:
a) Home Loan $300,000, 1.5 (150%), 30 yrs (this is equivalent to a 5% annual interest rate)
b) Credit Card $1000, 25% "APR" (0.25), compounding daily (365 times)
c) $1, 100% interest (1.0), compounding 12 times
d) $1, 100% interest (1.0), compounding 100 times
e) $1, 100% interest (1.0), compounding 999,999 times
HOPE THIS
ANSWER SATISFIES YOUR QUERY. IF I MISSED SOMETHING PLEASE DO
MENTION IN THE COMMENTS AND ALSO PLEASE RATE THE ANSWER. I HAVE
ATTACHED SCREENSHOT ALSO FOR BETTER UNDERSTANDING OF THE
CODE.
THANKS
def compounding(start, total_interest, periods):
interest = total_interest/periods #interest used for calculation is
total interest divided by periods
#print(interest)
A = start
for i in range(1,periods+1): #count for period starts from 1 till
30
A = A + (A * interest) #looped simple interest formula
print("Compound interest is", A)
compounding(300000,1.5,30)
compounding(1000,0.25,365)
compounding(1,1,12)
compounding(1,1,100)
compounding(1,1,999999)
1. Using Python write a function for compounding interest. There should be three arguments to the...
For the following investment, find the total number of compounding periods (n) and the interest rate per period (i) that you would substitute into the future value or present value formula . (Do not round.) Rate per period (in decimal form) Annual Rate Compounding periods Compounded Daily Time 4 years 1.825%
For the following investment, find the total number of compounding periods (n) and the interest rate per period (i) that you would substitute into the future value or present value formula. (Do not round.) Time 12 years Annual Rate 1.5% Compounded Monthly Rate per period (in decimal form) Compounding periods
For the following investment, find the total number of compounding periods (n) and the interest rate per period (0 that you would substitute into the future value or present value formula . (Do not round.) Annuall Rate Rate per period (in decimal form) Time 7 years 3.8% semiannually Compounded Compounding periods
For the following investment, find the total number of compounding periods (n) and the interest rate per period (i) that you would substitute into the future value or present value formula . (Do not round.) Time Annual Rate Compounded Rate per period (in decimal form) Compounding periods 8 years 4.5% Monthly
For the following investment, find the total number of compounding periods (n) and the interest rate per period (i) that you would substitute into the future value or present value formula . (Do not round.) Time 10 years Annual RateCompounded 1.9% semiannually Rate per period (in decimal form) .0019 Compounding periods 20
Write a program in Python that computes the interest accrued on an account. You can modify the “futval.py” program given in Chapter 2 to accomplish it. Your program should use a counted loop rather than a formula. It should prompt the user to enter the principal amount, the yearly interest rate as a decimal number, the number of compounding periods in a year, and the duration. It should display the principal value at the end of the duration. To compute...
In lecture, Professor Gruber explained discrete compounding interest. Interest can also be compounded continuously. Here we explain the difference. Professor Gruber calculated future value as FV = P(1+r)", where P is the principal, r is the interest rate, and t is the term of the contract (often in years). This formula can be generalized to FV = P(1+r/m)mt, where m is the number of compounding periods per year (in lecture, this was 1). That is, after every compounding period, more...
1. Interest Periods and Compounding a) Your family loans you money for school at a simple interest rate of 5%. If the original amount they provided was $20,000 what will you be paying them back in 5 years? b) You have 10 acres of land that can be used for residential development. It is worth $20,000 per acre right now. What would it be worth in 6 years if it appreciates at a rate of 6% compounded annually? c) Which...
part 1 given info present value = periodic interest rate = number of compounding periods = 190.00 0.080 6.00 What is the future value (single payment)? part 2 future value periodic interest rate = number of compounding periods = 301.51 0.080 6.00 what is the present value (single payment)? part 3 periodic payment periodic interest rate = number of compounding periods = 340.00 0.02 8.00 What is the future value of this annuity? part 4 present value (amount borrowed) =...
Time Value of Money: Comparing Interest Rates Different compounding periods, are used for different types of investments. In order to properly compare Investments or loans with different compounding periods, we need to put them on a common basis. In order to do this, you need to understand the difference between the nominal interest rate (INOM) and the effective annual rate (EAR). The Select interest rate is quoted by borrowers and lenders, and it is also called the annual percentage rate...