Question: Code in Python Please! Debug the following code so that it produces the solution belwo the code. Use 100 as the purchase price: NUNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NJEUNNNNNNNNNNNNNNNNNNN

Code in Python Please!

Code in Python Please! Debug the following code

Debug the following code so that it produces the solution belwo the code. Use 100 as the purchase price: NUNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NJEUNNNNNNNNNNNNNNNNNNN price=float(input("Enter the purchase price: ")) monthlyPayment=price*0.05 print("Month Starting Balance Intrest to Pay Principal to pay Payment Ending Balance") month=1 while price>0: intrestToPay=(price*0.12)/12 principalToPay=monthlyPayment-intrestToPay endigBalance=price-monthlyPayment print(month,"/t", price, "/t", intrestToPay, "/t",principalToPay, "/t", monthlyPayment, "/t", endingBalance)) price--monthlyPayment NUNNI UNNNN UNNNNNNNNN NURUNANNNN UNUNUN Enter the purchase price: 100 Month Starting Balance Intrest to Pay Principal To pay Payment Ending Balance 1 100.0 1.0 4.0 5.0 95.0 1 95.0 0.9500000000000001 4.05 5.0 90.0 1 90.0 0.8999999999999999 4.1 5.0 85.0 1 85.0 0.85 4.15 5.0 80.0 1 80.0 0.7999999999999999 4.2 5.0 75.0 1 75.0 0.75 4.25 5.0 70.0 1 70.0 0.7000000000000001 4.3 5.0 65.0 1 65.0 0.65 4.35 5.0 60.0 1 60.0 0.6 4.4 5.0 55.0 1 55.0 0.5499999999999999 4.45 5.0 50.0 1 50.0 0.5 4.5 5.0 45.0 1 45.0 0.44999999999999996 4.55 5.0 40.0 1 40.0 0.39999999999999997 4.6 5.0 35.0 1 35.0 0.35000000000000003 4.65 5.0 30.0 1 30.0 0.3 4.7 5.0 25.0 1 25.0 0.25 4.75 5.0 20.0 1 20.0 0.19999999999999998 4.8 5.0 15.0 1 15.0 0.15 4.85 5.0 10.0 1 10.0 0.89999999999999999 4.9 5.0 5.0 1 5.0 0.049999999999999996 4.95 5.0 0.0

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 General Management Questions!