Engineering
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) + '.')

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 08:10, doggo242
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
image
Engineering, 04.07.2019 18:10, johnthienann58
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
image
Engineering, 04.07.2019 19:20, rida10309
At steady state, air at 200 kpa, 325 k, and mass flow rate of 0.5 kg/s enters an insulated duct having differing inlet and exit cross-sectional areas. the inlet cross-sectional area is 6 cm2. at the duct exit, the pressure of the air is 100 kpa and the velocity is 250 m/s. neglecting potential energy effects and modeling air as an 1.008 kj/kg k, determine ideal gas with constant cp = (a) the velocity of the air at the inlet, in m/s. (b) the temperature of the air at the exit, in k. (c) the exit cross-sectional area, in cm2
Answers: 2
image
Engineering, 04.07.2019 19:20, rosemary909
In the winter, in order to keep the classroom steadily at 68 f before 10 pm, heating with an average rate of 42,000 btu/hr is provided. assume the outdoor temperature maintains at 32°f, determine the electrical power (kw) required to (a) operate a reversible heat pump (b) operate a real heat pump with a cop (7) of 4.5 and (c) operate an electrical-resistance heater.
Answers: 3
Do you know the correct answer?
3.13 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about h...

Questions in other subjects:

Konu
English, 04.10.2021 04:10
Konu
Mathematics, 04.10.2021 04:10
Konu
English, 04.10.2021 04:10