Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs,

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.045) / 12. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('%0.2f' % your_value)

Ex: If the input is:

200000
210000
the output is:

This house is $200000. The change is $-10000 since last month.
The estimated monthly mortgage is $750.00.
Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming.

Related Posts

This Post Has 4 Comments

  1. I’d say platform as a service (paas) or application platform as a service (apaas) or platform base service is a category of cloud computing services that provides a platform allowing customers to develop, run, and manage applications without the complexity of building and maintaining the infrastructure typically associated with developing and launching an app.

Leave a Reply

Your email address will not be published. Required fields are marked *