Ask Question
26 July, 10:39

python Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (current_price * 0.051) / 12.

+4
Answers (1)
  1. 26 July, 13:03
    0
    current_price = int (input ("Enter current price: "))

    last_months_price = int (input ("Enter last month's price: "))

    print ("This house is $%d. The change is a $%d since last month." % (current_price, current_price - last_months_price))

    print ("The estimated monthly mortgage is $%d." % int (current_price*0.045/12))

    Explanation:

    - Ask the user to enter the values for current_price and last_months_price.

    - Print the current price.

    - Calculate change from last month (current_price - last_months_price) and print it.

    - Calculate the mortgage (using given formula (current_price * 0.051) / 12) and print it.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “python Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers