Question

PYTHON ONLY This is beginner python. Use Python to make a calculator that shows debt/monthly payments....

PYTHON ONLY

This is beginner python.

Use Python to make a calculator that shows debt/monthly payments.

Write a python program given:

balance = 100

interest = 10% annually

payment = 10

Output should look like this:

Enter initial balance:100

Enter annual % interest rate:10

Enter monthly payment:100

Month: 1

Beginning balance: $100.00

Interest charge this month: $0.83

Balance going forward: $90.83

Total paid in all: $10.00

Month: 2

Beginning balance: $90.83

Interest charge this month: ###

Balance going forward: ###

Total paid in all: ####

.......

the program should continue looping and the month # increases by 1 each time.

Until the Balance going forward is < = $0.

The program uses a while loop.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

/***********************************main.py***************************/

initialBalance = float(input("Enter initial balance: "))
annualRate = float(input("Enter annual % interest rate: "))
monthlyPayment = float(input("Enter monthly payment: "))

month = 1
while(initialBalance>0):
print("Month",month)
print("Beginning balance: $%.2f"%initialBalance)
interest = initialBalance*annualRate/1200
print("Interest charge this month: $%.2f"%interest)
initialBalance = (initialBalance - monthlyPayment)+interest
if(initialBalance<=0):
print("Balance going forward: $0")
break;
print("Balance going forward: $%.2f"%initialBalance)
month = month+1;

Please let me know if you have any doubt or modify the answer, Thanks:)

Add a comment
Know the answer?
Add Answer to:
PYTHON ONLY This is beginner python. Use Python to make a calculator that shows debt/monthly payments....
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
  • Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives...

    Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print the sum of the numbers and their average. Q2. The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of...

  • Your program will ask the user to enter the amount of money they want to borrow,...

    Your program will ask the user to enter the amount of money they want to borrow, the interest rate, and the monthly payment amount. Your program will then determine how many months it will take to pay off that loan, what the final payment amount will be, and how much interest was paid over that time. If the monthly payment amount isn't high enough to pay off more than one month's interest, your program should notify the user what the...

  • 1. You are going to pay off your credit card balance completely by making monthly payments of $100 for the next 2 years....

    1. You are going to pay off your credit card balance completely by making monthly payments of $100 for the next 2 years. In other words, your balance will reduce to zero when the last (the 24th) payment is made. Your lender charges your balance an interest of 4% a month. How much will your credit card balance be immediately before the 23rd payment is made? A) $96.15 B) $97.09 C) $98.04 D) $100.00 E) $196.15

  • Create the amortization schedule for a loan of $4,400, paid monthly over two years using an...

    Create the amortization schedule for a loan of $4,400, paid monthly over two years using an APR of 10 percent. Enter the data for the first three months. ( Month Beginning Balance Total Payment Interest Paid Principal Paid Ending Balance 1 2 3

  • A homebuyer borrows 400,000 to be repaid over a 20 year period with level monthly payments...

    A homebuyer borrows 400,000 to be repaid over a 20 year period with level monthly payments beginning one month after the loan is made. The interest rate on the loan is a nominal annual rate of 12% convertible monthly. Find: a. the monthly payment b. the total principal paid on the loan over 20 years c. the total interest paid on the loan over 20 years d. the loan balance after 15 years e. the total principal paid on the...

  • 19. Monthly Payments The monthly payment on a loan may be calculated by the following formula:...

    19. Monthly Payments The monthly payment on a loan may be calculated by the following formula: Rate (1Rate) ((1 Rate)N - 1) Payment - Rate is the monthly interest rate, which is the annual interest rate divided by 12" (12% annual interest would be 1 percent monthly interest.) N is the number of payments, and L is the amount of the loan. Write a program that asks for these values and displays a report similar to Loan Amount: Monthly Interest...

  • Your prepared to make monthly payments of $225, beginning at the end of this month, into...

    Your prepared to make monthly payments of $225, beginning at the end of this month, into an account that pays 10% interest compounded monthly. How many payments will you have made when your account balance reaches $60,000? Please show all calculations and answers.

  • Create the amortization schedule for a loan of $4,400, paid monthly over two years using an APR of 10 percent. Enter the...

    Create the amortization schedule for a loan of $4,400, paid monthly over two years using an APR of 10 percent. Enter the data for the first three months. (Round your answers to 2 decimal places.) Month Beginning Balance Total Payment Interest Paid Principal Paid Ending Balance 1 2 3

  • Please answer in Python with indentation, ty. The credit plan at TidBit Computer Store specifies a...

    Please answer in Python with indentation, ty. 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...

  • PYTHON CODE PLEASE!!! The credit plan at TidBit Computer Store specifies a 10% down payment and...

    PYTHON CODE PLEASE!!! 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)...

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