Sherry Y.

asked • 11/15/20

solving a practice question about finishing a python equation

2. You are considering buying a house and wondering what is the maximum amount of loan you can afford to borrow. Assuming the current interest rate for 30-year term loan is 3.0%, and you can afford a monthly payment of $2000, the program below starts by setting the loan to $100,000, and if it is affordable the program will increase the loan amount by $10,000, and continue until reaching the loan that is not affordable. Complete the program below to compute the maximum amount of loan you are affordable to borrow.



affordablePayment=2000

rate=.03 term=30

loan=100000

continueFlag=True

while continueFlag:






print('Maximum amount of loan I can afford is: ${:,.2f}'.format(loan))



1 Expert Answer

By:

Patrick B. answered • 11/15/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.