Question
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
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)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started