Question
Python 3: The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5%
Python 3:
The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment.
Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items:
The month number (beginning with 1)
The current total balance owed
The interest owed for that month
The amount of principal owed for that month
The payment for that month
The balance remaining after payment
The amount of interest for a month is equal to balance rate / 12.
The amount of principal for a month is equal to the monthly payment minus the interest owed.
Please make it come out in exactly the same format as the example provided. This code below:
price = input("Enter the purchase price: ") month = 1 StaringBalance = float(price) payment = float(price) * .05 print('Month Starting Balance Interest to Pay Principal to Pay Payment Ending Balance')
while StaringBalance >= payment: interest = StaringBalance * .01 Principal = payment-interest EndingBalance = StaringBalance-payment print('{:
When ran to test $200 it returned:
Results
1\s+200.00\s+2.00\s+7.00\s+9.00\s+191.00
7\s*146.00\s*1.46\s*7.54\s*9.00\s*137.00
15\s*74.00\s*0.74\s*8.26\s*9.00\s*65.00
23\s*2.00\s*0.00\s*2.00\s*2.00\s*0.00
Expected Output
1\s+200.00\s+2.00\s+7.00\s+9.00\s+191.00
7\s*146.00\s*1.46\s*7.54\s*9.00\s*137.00
15\s*74.00\s*0.74\s*8.26\s*9.00\s*65.00
23\s*2.00\s*0.00\s*2.00\s*2.00\s*0.00
Instructions The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, f a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: 1. The month number (beginning with 1) 2. The current total balance owed 3. The interest owed for that month 4. The amount of principal owed for that month 5. The payment for that montlh 6. The balance remaining after payment The amount of interest for a month is equal to balancex rate /12. The amount of principal for a month is equal to the monthly payment minus the interest owed An example of the program input and output is shown below: Enter the puchase price: 200 Month Starting Balance Interest to Pay Principal to Pay Payment Ending Balance 200.00 199. 188. 170-90 168. 150.00 148. 138. 129.00 110.00 8.00 8.10 8.20 8.3 10.00 199. 188. 178. 168. 150.00 140.00 138. 10-99 10.00 10.00 10.00 10-99 8.50 8.60 8.80 8.9 9.00 10.00 10.00 10.00 10-99 110.0 10 99.99 88. 70.00 60.00 50-99 48.99 12 99.99 80.00 78. 68.00 50.00 48.99 38. 20.00 10.00 8.80 9.20 9.3e 10.00 10.00 10.00 10-99 .6 16 0.50 9.50 9.6 18 20.00 0.28 9.80 10.00 10.00 20 9.9 10.00Step 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