Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can anyone explain why im getting this error ? heres the problem being solved and an example: heres what i have so far and the

can anyone explain why im getting this error ?
heres the problem being solved and an example:
image text in transcribed
image text in transcribed
heres what i have so far and the error im receiving
image text in transcribed
image text in transcribed
thank u:)
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: 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 month 6. 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. An example of the program input and output is shown below: Instructions Enter the puchase price: 200 Month123456789101112131415161718192021StartingBalance180.00172.80165.53158.18150.77143.27135.71128.06120.34112.55104.6796.7288.6980.5772.3864.1055.7447.3038.7730.1621.46InteresttoPay1.801.731.661.581.511.431.361.281.201.131.050.970.890.810.720.640.560.470.390.300.21PrincipaltoPayPaymentEndingBi7.207.277.347.427.497.577.647.727.807.877.958.038.118.198.288.368.448.538.618.708.799.009.009.009.009.009.009.009.009.009.009.009.009.009.009.009.009.009.009.009.009.00 1. NNUAL,RATE I. Q. 12 2. MONTHLY_PATE \& MOUAL,GATER2 purchasePrice = foectinput("Enter the purchane price: ")) domnPaynent : purchatePrice*g is purchasePrice s purchasePrice - downPayment monthlypayment =8.5+ purchaseprice 10 month =1 11 balance = purchaseprice 12 print("Month ftarting Ealance Interest to Pay Paincipal to Pay Paynent Ending falance") 13 whille balance i. b! If monthlypaynent 3 belance: monthlypayent = balance Intetest = b else: Interest = balance = MONTHLY_RATE principel = monthlypaynent + interest toenining = bolance principal balance = renaining menth is 1 Enter the purchase price: 200 I Month Starting Balance Interest to Pay Principal to Pay Payment Ending Balance Traceback (most recent call last): File "/root/sandbox/tidbit.py", 1ine 21, in (modules rincipal to Pay", "Payment", "Ending Balance")) TypeError: Xd format: a real number is required, not str

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Question What is a price variance? What is a quantity variance

Answered: 1 week ago