1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kompoz [17]
3 years ago
9

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))
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 newlines exactly right is a key point of this assignment. Such precision is an important part of programming.
main.py
current_price = int(input())
last_months_price = int(input())
''' Type your code here. '''
Computers and Technology
1 answer:
Papessa [141]3 years ago
7 0

Answer:

current_price = int(input())

last_months_price = int(input())

change = current_price - last_months_price

mortgage = (current_price * 0.051) / 12

print('This house is $' + str(current_price) + '. The change is $' + str(change) + ' since last month.')

print('The estimated monthly mortgage is ${:.2f}.'.format(mortgage))

Explanation:

Ask the user to enter the current price and last month's price

Calculate the change, subtract last month's price from the current price

Calculate the mortgage using the given formula

Print the results in required format

You might be interested in
Ron is in the process of designing tables for a database that will contain information for all school matches played in a year.
solong [7]
Primary Key, if we define field as primary key it will not accept duplicate values.<span>
</span>
6 0
3 years ago
Pls help? \/<br><br>https://youtu.be/kDmXlM50API<br>Click there and go to my channel and $ub
WITCHER [35]

Coming from a person with a Y-ouTube channel with more than 50 s-ubscribers, here are some tips if you want to be serious about starting this.

1. Don't ask for s-ubs. It never works, and it won't ever. That's not a good way to promote your channel. Especially on a school website. You have to work hard for your s-ubscribers, because if you ask for them, you won't have real fans. They'll only be there as a number, not viewing your videos, just staying there. I don't ask my viewers to s-ubscribe, because that's their choice and I don't want to force them to do anything. If you don't ask for s-ubs, people will view you as a person who cares for people's opinions and doesn't tell people what they should do. Also, you have to have 1,000 subs, 4 live watch hours, and more than 10k views to get paid.

2. Don't post random videos. Set up your channel first. If you post random things, your channel won't grow at all because people only s-ubscribe if they really like the person's original content or the person themselves.

3. Remember, quality not quantity. Just because you post multiple videos, doesn't mean you'll get many views. Quality in this case means to put real effort into your videos. Taking the time to make thumbnails, full descriptions, etc. Quantity means that you only care about how many videos come out.

4. DON'T COPY OTHERS. Make your own content (also don't clickbait). If you make your own content people will s-ubscribe for your originality, and they'll be more interested in your content.

5. Look at your comments and interact with your s-ubscribers. Y-ouTube loves that. Don't ignore them, and make them know that they're special.

6. Take criticism. I'm guessing since you became a Y-ouTuber, you already know that you're bound to get hate. If someone comments something rude, delete it, block the person and move on. Don't start a meaningless argument. If someone gives constructive criticism, just respond with something like "Okay, thanks for the feedback!".

I hope this helped you learn more things about becoming a Y-ouTuber :)

3 0
3 years ago
Mrs. Schlair has an annual salary of $96,402.<br> a. What would her semimonthly salary be?
amid [387]

Answer:$4016.75

Explanation:64333/24

3 0
3 years ago
Hannah decides to burn her video portfolio to a DVD. She wants to hand it over to a movie producer she will meet at a social eve
Gwar [14]
C maybe I am not sure this
7 0
3 years ago
To add a new guide to the slide press ____________________ and then drag an existing guide
Reptile [31]
To be able to add new guide to the slide, press [Ctrl] and then drag an existing guide. Make sure that the guide is visible to your power point first so you can be able to do this. Guides in the power point is consist of 2 lines, the horizontal line and the vertical lines, once this set to appear, it will be visible to all your slides. <span />
8 0
3 years ago
Other questions:
  • Given the structure definition shown, assume that circle1 and circle2 are variables of the Circle type and their members have be
    13·1 answer
  • write a program that reads in the length and the width of a rectangular yard . your program should compute the time required ( i
    5·1 answer
  • What are the three aspects to consider when taking and critiquing photograph?
    9·1 answer
  • Which game would be classified as an advergame? A. Tomb Raider B. Fifa Soccer C. Prince of Persia D. Flower
    9·1 answer
  • MyProgramming Lab
    12·1 answer
  • 9.3 Code Practice
    13·2 answers
  • Name at least 3 different portable computer devices that can be purchased
    15·2 answers
  • Which requires large computer memory?
    15·1 answer
  • What is denial service attack?
    14·2 answers
  • Who likes my meme? :)
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!