subject
Engineering, 18.10.2020 16:01 gilliandooley1002

3.13 LAB: Input and formatted output: House real estate summary 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.

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

print('{:.2f}'.format(your_value) )

#3.13.1: LAB: Input and formatted output: House real estate summary 10 / 10

current_price = int(input())
last_price = int(input())

your_value1 = current_price
your_value2 = current_price - last_price
your_value3 = (current_price * 0.051) / 12

print('This house is $' + '{:.0f}'.format(your_value1) + '. The change is $' + '{:.0f}'.format(your_value2) + ' since last month.')
print('The estimated monthly mortgage is $' + '{:.2f}'.format(your_value3) + '.')

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
You know the right answer?
3.13 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about h...
Questions
question
Mathematics, 25.02.2020 01:59
question
Mathematics, 25.02.2020 01:59
question
Mathematics, 25.02.2020 01:59
Questions on the website: 13722367