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.

Answer :

frknkrtrn

Answer:

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.

Answer:

finalprice= current_price-last_months_price

monthly= (current_price*0.051)/12

print('This house is', '

Other Questions

'{:.0f}'.format(current_price),end='.')

print(' ''The change is', '

Other Questions

'{:.0f}'.format(finalprice), 'since last month.')

print('The estimated monthly mortgage is', '

Other Questions

'{:.2f}'.format(monthly),end='.''\n')

Explanation:

Other Questions

How do scientists build on previous work when developing theories
In the passage "Aesop's Life," what is the effect of the anecdote about how Aesop wins his freedom? It shows that storytellers can gain power. It suggests that
7) Convert 8.34 x 10^-6 Kg to cg" 0.0834 cg 8340 cg 0.834 cg 0.00834 cg 0.834 x 10^-6
what is the midpoint between (-4,4) and (-2,2)​
What number on the ruler represents the midpoint of segment RW?
write a paragraph in the value of time in our life ​
g✨✨1.You bought a Sony TV for 80000, with a warranty of 7 years..But after one month it is not working properly. Call the Shop manager and complain over phone..
She has brought some ...............
many land owners choose to provide some part of their land to the farmers due to​
Small piece of root tissue was taken from a rose plant and placed in a suitable medium containing nutrients and plant hormones where they divided rapidly to for
John has to solve the equation 3x = 15. What should John do the the equation? A. John should divide both sides of the equation by 3. B. John should multiply bot
Solve for x. 3x^2-14=13
Simplify by combining like terms: -5x-13+7y+26x
Which is NOT an example of an abdominal exercise? O Bicycles Planks O Preacher Curl O Medicine Ball Twists
8. Compare and contrast two jobs that differ in their level of physical demand.
Braniest! Please help. please. Which sentence best states the central idea of "The Shepherd's Boy and the Wolf"? A boy afraid to be alone pretends a wolf is att
Brazil and Canada trade two goods: bananas and ice pops. Brazil has a comparative advantage in banana production. This means that: A. neither country has a comp
Cisplatin Pt(NH3)2Cl2 has been studied and used as an anti-tumor agent to treat certain types of cancer. The compound is generated by the following reaction:K2P
Lydia and john wickham filed jointly in year 1. They divorced in year 2. Late in year 2, the irs discovered that the wickham's underpaid their year 1 taxes by $
Cartographers use Map to show the meaning of Map symbols