Question

Write a program to determine how many months it will take to pay off a $10,000...

Write a program to determine how many months it will take to pay off a $10,000 car loan with 4% interest. Choose your own monthly payment

0 0
Add a comment Improve this question Transcribed image text
Answer #1
# returns the (new balance, payment made this month)
def remainBalance(rate, startBalance, payment):
        newBalance = startBalance + (startBalance * rate / 100)
        if newBalance <= payment:
                return (0, newBalance)
        return (startBalance - payment + (startBalance * rate / 100), payment)

balance = 10000.0
totalPayments = 0.0
month = 0
monthlyRate = 4
monthlyPayment = 1000

while balance > 0:
        month += 1
        balance, payment = remainBalance(monthlyRate, balance, monthlyPayment)
        totalPayments += payment
        print('Month: %d, balance: %f\tPayments: %f' % (month, balance, totalPayments))

print('It takes %d months to completely pay the amount' % month)

please upvote.

Add a comment
Know the answer?
Add Answer to:
Write a program to determine how many months it will take to pay off a $10,000...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • How many months will it take you to pay off a loan of $20,000 at 5%...

    How many months will it take you to pay off a loan of $20,000 at 5% APR compounded monthly if you make monthly payments of $825?

  • How many months will it take you to pay off a loan of $19,000 at 5%...

    How many months will it take you to pay off a loan of $19,000 at 5% APR compounded monthly if you make monthly payments of $925?

  • 5) A man agrees to pay $300 per month for 48 months to pay off a...

    5) A man agrees to pay $300 per month for 48 months to pay off a car loan. If interest of 12% per annum is charged monthly, how much did the car originally cost? How much interest was paid? 6) Chase Bank was offering a 30-year fixed-rate mortgage of 7.38%. George and Debby Ashton purchased a house for $180,000. After putting 20% down as a down payment. they finance the balance with Chase Bank. a. Determine the size of the...

  • If the credit card has an annual interest rate of 13.6% and only the minimum monthly payment of $35 is made, how many months will it take to pay off the credit card?

    Part 2: Credit Cards Another type of personal loan is a credit card. A financial institution allows you to charge a purchase to your account, and you are required to pay the financial institution at a later time. As with other loans, credit cards charge interest. Interest rates can range from 3% - 22%. When you are paying for debt on a credit card, the financial institution will require a minimum balance be paid each month. The higher the interest rate that is charged...

  • Problem #3: Mort is to pay off a loan of $80,000 with equal payments at the...

    Problem #3: Mort is to pay off a loan of $80,000 with equal payments at the end of every month over 10 years (i.e., 120 months). The ANNUAL effective rate is 4.5%. Mort decides that he can actually manage to pay double the monthly payment each month. How many MONTHS will it take him to pay off the loan? (Include the final month where the last payment will be smaller than all the rest.) Problem #3: Answer in integer number...

  •  How long will it take to pay off a loan of ​$51 comma 000 at an...

     How long will it take to pay off a loan of ​$51 comma 000 at an annual rate of 9 percent compounded monthly if you make monthly payments of ​$800​? Use five decimal places for the monthly percentage rate in your calculations. The number of years it takes to pay off the loan is nothing years.  ​(Round to one decimal​ place.)

  • How long will it take to pay off a loan of ​$50 comma 00050,000 at an...

    How long will it take to pay off a loan of ​$50 comma 00050,000 at an annual rate of 99 percent compounded monthly if you make monthly payments of ​$600600​? Use five decimal places for the monthly percentage rate in your calculations. The number of years it takes to pay off the loan is nothing years.  ​(Round to one decimal​ place.)

  • • 1) A new car is purchased and a $20,000 loan is taken. The loan is...

    • 1) A new car is purchased and a $20,000 loan is taken. The loan is for 5 years (60 months) and the interest rate is 7.9% compounded monthly. What is the monthly payment? • 2)A new car is purchased and a $20,000 loan is taken. The loan is for 5 years (60 months) and the interest rate is 7.9% compounded monthly. What is the balance after 3 years? . 3) A new car is purchased and a $30,000 loan...

  • How long will it take to pay off a loan of ​$46 comma 000 at an...

    How long will it take to pay off a loan of ​$46 comma 000 at an annual rate of 12​% compounded monthly if you make monthly payments of ​$800 ​(round up)? To pay off the​ loan, it will take approximately nothing years.  ​(Round up to the nearest​ integer.)  

  • ​(Annuity number of​ periods)  How long will it take to pay off a loan of ​$54,000...

    ​(Annuity number of​ periods)  How long will it take to pay off a loan of ​$54,000 at an annual rate of 11 percent compounded monthly if you make monthly payments of $500​? Use five decimal places for the monthly percentage rate in your calculations. The number of years it takes to pay off the loan is ___ years.  ​(Round to one decimal​ place.)

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT