Question: Using python, write code for problem. Interest Rates Savings accounts state an interest rate and a compounding period. If the amount deposited is P, the

Using python, write code for problem.

Using python, write code for problem. Interest Rates Savings accounts state an

Interest Rates Savings accounts state an interest rate and a compounding period. If the amount deposited is P, the stated interest rate is r, and interest is compounded m times per year, then the balance in the account after one year is P middot (1 + r/m)^m. For instance, if $1,000 is deposited at 3% interest compounded quarterly (that is, four times per year), then the balance after one year is 1,000 middot (1 + midoot 03/4)^4 = 1,000 middot 1.0075^4 = $1030, 34. Interest rates with different compounding periods cannot be compared directly. The concept of APY (annual percentage yield) must be used to make the comparison. The APY for a stated interest rate r compounded m times per year is defined by APY = (1 + r/m)^m - 1. (The APY is the simple interest rate that yields the same amount of interest after one year as the compounded annual rate of interest.) Write a program to compare interest rates offered by two different banks and determine the most favorable interest rate. Enter annual rate of interest for Bank 1: 2.7 Enter number of compounding periods for Bank 1: 2 Enter annual rate of interest for Bank 2: 2.69 Enter number of compounding periods for Bank 2: 52 APY for Bank 1 is 2.718%. APY for Bank 2 is 2.726%. Bank 2 is the better bank

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!