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 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
question
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
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, 09.11.2020 01:00
question
Mathematics, 09.11.2020 01:00