Question: Please fix this code, the starting balance is not calculating correctly. When I input 8 0 0 I should get 7 2 0 back as
Please fix this code, the starting balance is not calculating correctly. When I input I should get back as the starting value but it gives instead. def repaymentplanpurchaseprice:
downpaymentrate
annualinterestrate
monthlyinterestrate annualinterestrate
monthlypaymentrate
downpayment purchaseprice downpaymentrate
startingbalance purchaseprice downpayment
balance startingbalance
prints s s s s sMonth "Starting Balance", "Interest Owed", "Principal Owed", "Payment Owed", "Remaining Balance"
for month in range:
interest startingbalance monthlyinterestrate
principal monthlypaymentrate purchaseprice interest
payment purchaseprice monthlypaymentrate
startingbalance interest
balance payment
print:d:f:f:f:f:fformatmonth startingbalance, interest, principal, payment, balance
month
purchaseprice floatinputEnter the purchase price:
if purchaseprice :
repaymentplanpurchaseprice
else:
printEnd Repayment Plan."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
