stuff
This commit is contained in:
9
4-mortgage-calculator/README.md
Normal file
9
4-mortgage-calculator/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
## Mortgage Calculator
|
||||
|
||||
Make a mortgage calculator that returns your monthly payments based on the following mortgage equation:
|
||||
|
||||
M = P( i/12( 1+i/12 )^n )/( ( 1+i/12 )^n - 1 )
|
||||
|
||||
Check out the assert test given. See if you can write two more 'assert' statements.
|
||||
|
||||
Make a table that shows all of the monthly payments and the change in balance based on the payments
|
4
4-mortgage-calculator/mortgage_calculator.py
Normal file
4
4-mortgage-calculator/mortgage_calculator.py
Normal file
@ -0,0 +1,4 @@
|
||||
def mortgage_calculator():
|
||||
pass
|
||||
|
||||
assert mortgage_calculator(100000, 0.05, 120) == 1060.66, str(mortgage_calculator(100000, 0.05, 120)) + " != 1060.67"
|
Reference in New Issue
Block a user