Question

IT IS A PYTHON PROGRAM interest_due() • Parameters ◦ the balance of the mortgage (the part...

IT IS A PYTHON PROGRAM

interest_due()

• Parameters

◦ the balance of the mortgage (the part of the principal that has not been paid back yet; should be a positive number) ◦ the annual interest rate (should be a float between 0 and 1) ◦ the number of payments per year (should be a positive integer; default value: 12) • Functionality ◦ Compute and return the amount of interest due in the next payment according to the formula i = br, where ▪ i is the amount of interest due in the next payment ▪ b is the balance of the mortgage ▪ r is the interest rate per payment (the annual interest rate divided by the number of payments per year)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CODE

def interest_due(principal, interest, num_payments):

rate = interest / num_payments

return principal * rate

print(interest_due(10000, 2.5, 12))

Add a comment
Know the answer?
Add Answer to:
IT IS A PYTHON PROGRAM interest_due() • Parameters ◦ the balance of the mortgage (the part...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • %%Python Question%% get_min_payment() • Parameters ◦ the total amount of the mortgage (called the principal; should...

    %%Python Question%% get_min_payment() • Parameters ◦ the total amount of the mortgage (called the principal; should be a positive number) ◦ the annual interest rate (should be a float between 0 and 1) ◦ the term of the mortgage, in years (should be a positive integer; default value: 30) ◦ the number of payments per year (should be a positive integer; default value: 12) • Functionality ◦ Compute the minimum mortgage payment. Should use the formula A= Pr(1+r) n (1+r)...

  • The program is in python :) Write a code program to calculate the mortgage payment. The...

    The program is in python :) Write a code program to calculate the mortgage payment. The equation for calculating the mortgage payment is: M = P (1+r)n (1+r)n-1 Where: M is your monthly payment P is your principal r is your monthly interest rate, calculated by dividing your annual interest rate by 12. n is your number of payments (the number of months you will be paying the loan) Example: You have a $100,000 mortgage loan with 6 percent annual...

  • Create a program that calculate the amount of a mortgage payment. Refer to the appropriate video...

    Create a program that calculate the amount of a mortgage payment. Refer to the appropriate video or any online source for how the mathematics of the calculation works. If given these three things: The amount of the loan in whole dollars The number of payments (e.g. 360 for 30-year) The interest rate per payment period in percent ( a positive floating-point number) The program should print out the correct value (in dollars and cents) of the per-period payment of principal...

  • Mortgage Amortization Complete the loan amortization schedule for a Mortgage that will be repaid over 360...

    Mortgage Amortization Complete the loan amortization schedule for a Mortgage that will be repaid over 360 months and answer the following questions (The details about the loan are shown below): Correct Answers 1. What is your monthly payment? 2. What is the total $ amount of payments made over the life of the loan Enter Answers Here. 3. How many months will it take to pay off the loan if you pay an extra $465.71 per month? Note: Enter the...

  • Fulton Corporation purchases new manufacturing facilities and assumes a 10 year mortgage of $2 million. The...

    Fulton Corporation purchases new manufacturing facilities and assumes a 10 year mortgage of $2 million. The annual interest rate on the mortgage is 5.5% and payments are due at the end of each year. a. Determine the mortgage payment that Fulton Corporation must make each year. Round to the nearest dollar. b. Use Excel to prepare a mortgage amortization schedule for the 10 years. c. At the end of the first year, what amount will Fulton include as "current maturities...

  • A 30-year mortgage has an annual interest rate of 5.25 percent and a loan amount of...

    A 30-year mortgage has an annual interest rate of 5.25 percent and a loan amount of $175,000. What are the monthly mortgage payments? (Round your answer to 2 decimal places.) Payment A 30-year mortgage has an annual interest rate of 4.65 percent and a loan amount of $225,000. (Hint: Use the "IPMT" and "PPMT" functions in Excel.) What are the interest and principal for the 84th payment? (Round your answers to 2 decimal places.) Interest Principal A 20-year mortgage has...

  • Jan sold her house on December 31 and took a $25,000 mortgage as part of the...

    Jan sold her house on December 31 and took a $25,000 mortgage as part of the payment. The 10-year mortgage has a 7% nominal interest rate but it calls for semiannual payments beginning next June 30. Next year Jan must report on Schedule B of her IRS Form 1040 the amount of interest that was included in the two payments she received during the year a. What is the dollar amount of each payment Jan receives? Round your answer to...

  • Jan sold her house on December 31 and took a $15,000 mortgage as part of the...

    Jan sold her house on December 31 and took a $15,000 mortgage as part of the payment. The 10-year mortgage has a 12% nominal interest rate, but it calls for semiannual payments beginning next June 30. Next year Jan must report on Schedule B of her IRS Form 1040 the amount of interest that was included in the two payments she received during the year. a. What is the dollar amount of each payment Jan receives? Round your answer to...

  • Jan sold her house on December 31 and took a $5,000 mortgage as part of the...

    Jan sold her house on December 31 and took a $5,000 mortgage as part of the payment. The 10-year mortgage has a 10% nominal interest rate, but it calls for semiannual payments beginning next June 30. Next year Jan must report on Schedule B of her IRS Form 1040 the amount of interest that was included in the two payments she received during the year. a. What is the dollar amount of each payment Jan receives? b. How much interest...

  • Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives...

    Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print the sum of the numbers and their average. Q2. The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT