Question: 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,

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.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:

print('{:.2f}'.format(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 $850.00. 

Note: Getting the precise spacing, punctuation, and newlinesexactlyright is a key point of this assignment. Such precision is an important part of programming.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!