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
A-mn has a cubic structure with a0 0.8931 nm and a density of 7.47 g/cm3. b-mn has a different cubic structure, with a0 0.6326 nm and a density of 7.26 g/cm3. the atomic weight of manganese is 54.938 g/mol and the atomic radius is 0.112 nm. determine the percent volume change that would occur if a-mn transforms to b-mn.
Answers: 2
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 18:20
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
question
Engineering, 04.07.2019 19:20
To save energy, the air supply to a 2000 ft office has been shut off overnight and the room temperature has dropped to 40°f. in the morning, the thermostat is reset to 70°f and warm air at 120 f begins to flov in at 200ft'/min. the air is well mixed within the room, and an equal mass flow of air at room temperature (changing with time) is withdrawn through a return duct. the air pressure is nearly 1 atm everywhere. ignoring heat transfer with the surroundings and kinetic and potential energy effects, estimate how long it takes for the room temperature to reach 70°f. plot the room temperature as a function of time.
Answers: 1
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
English, 21.11.2020 04:20
question
Chemistry, 21.11.2020 04:20
question
Advanced Placement (AP), 21.11.2020 04:20
question
Spanish, 21.11.2020 04:20
Questions on the website: 13722363