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))
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.
LAB

Answers

Answer 1

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 $', end= '')

print(current_price, end= '. ')

print('The change is $', end= '')

print(change, end= ' ')

print('since last month.')

print('The estimated monthly mortgage is $', end= '')

print(mortgage, end='0.\n')


Related Questions

does The operating system assigns the file, name and location inside

Answers

Answer:

The operating system assigns the file its name, location, and size. When you add information to a word-processing document, one of the roles that your operating system plays is that is saves your unsaved work to temporary storage.

Explanation:

The operating system is designed and developed to assign the file, its name, size and location.

What is an operating system?

An operating system (OS) can be defined as a system software that is pre-installed on a computing device, so as to manage random access memory (RAM), software applications, computer hardware and all user processes.

In computer technology, the operating system is designed and developed to assign the file, its name, size and location.

Read more on software here: https://brainly.com/question/26324021

#SPJ2

When you use an IDE instead of a simple text editor to develop a program, ____________.

Answers

Answer:

your answer is :

some help is provided

Explanation:

An integrated developed environment (IDE) provide more programming help than a plain text editor.

please mark me brainlist

CSS At-rules provide a way for designers to define "if this, then that" scenarios.
True or false?

Answers

True true true true

what are point to consider while running occupation?​

Answers

Answer:

if you mean running a business, i think you should have a budget and enough inventory depending on what you're selling.

Explanation:

Answer:

First thing that you have should consider is your happiness.If you are happy then your work will be successful.The 2 point is your education.You should decide what you are capabe of.It will help you a lot.If you’re a people person then you’ll want to consider the social environment of your work. While introverts may be comfortable at a desk job, extroverts often need more stimulation. Try to choose a career that fits your social needs.Each individual has a unique work style. Some enjoy deadlines and structure, while others thrive with little guidance or management. Make sure the career path that you choose is conducive to the environment in which you work best.As you think about your future career, make a list of your top priorities. How will you achieve a work-life balance? What’s most important to you? Are you driven by the idea of career success and industry? For example, if you become a self-employed beauty professional, you could set your own schedule. You could also have more control over your business and career. Knowing what your priorities are could save you a lot of time and money in the future!

Hope you got it

Of you have any question just ask me

If you think this is the best answer please mark me as brainliest

when’s The release date for Mobile legends project next phase 3 going To come

Answers

Answer: This Project will involve Hero Revamps, Hero Adjustments, Hero Remodels, and much more. Project NEXT is divided into 2 phases: the first phase was released on September 22, 2020, the second phase was released on June 15, 2021 and the third phase is to be released on "September 2021".

What was revolutionary about Web 2.0?

Answers

Answer:

social media and sites allow people to communicate with others

Explanation:

Hope this helps <3

help i was building my pc and i pushed the cpu into the socket really hard until there was an audible crack and it went into the socket but now my pc wont turn on. i thought it was the bromine that i spilled onto the motherboard so i took the pc to the sink, plugged it in and doused it in the stream of tap water but it still wont turn on

Answers

Try smashing it with a hammer, always helped me

Answer:

light it on fire, worked for me tbh

explain how you would use Personal Firewalls and a Network Firewall to secure your home network.

Answers

Explanation:

Since each firewall is different, you will need to read and understand the documentation that comes with it to determine whether the default firewall settings are sufficient for your needs. This is particularly concerning because the “default” configuration is typically less restrictive, which could make your firewall more susceptible to compromise. Alerts about current malicious activity (e.g., CISA’s Alerts) sometimes include information about restrictions you can implement through your firewall.

If the CPI was 140 last year and is 147 this year, what is this year’s rate of inflation?

Answers

Answer:

10%

Explanation:

3. Choose the right statement bellow: Excel can not import external data from
a. Access
b. SQL-Server
c. Speech files
d. Text files
4. In Excel, address can be written in forms:
a. BC23, $$BC23, $BC$23, BC$23
b. BC23, $BC23, $BC$23, BC$23
c. BC23, $BC23, B$C$23, BC$23
d. BC23, $BC23, $BC$23, B$C$23
5. In Excel, at B2 an user put the string “Nguyen Van Hoa”. In order to get name “Hoa” in cell C2, the
user need:
a. =Left(B2,3)
b. =Left($B2,3)
c. =Left(B$2,3)
d. All of above answers

Answers

Answer:

c. Speech files

b. BC23, $BC23, $BC$23, BC$23

a. =Left(B2,3)

Explanation:

Using the school network as an example, explain how you would connect from your home through a VPN to a system within the school intranet.

Answers

Answer:

you can install a VPN using a Chrome web store or in your store I use urban VPN and it's really good

Mouse is .....ware.

Answers

Mouse is hardware.

Explanation:

because we can touch it and in the hardware definition we say that it can be touched.

What is hardware?

A) The set of standards followed by the computer industry

B) The set of instructions that your computer executes

C) The physical devices that make up a computer system

D) The physical devices and the set of instructions that your computer executes

Answers

The physical devices that make up a computer system

Answer:

Computer hardware includes the physical parts of a computer, such as the case,[1] central processing unit (CPU), monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard.[2]

Explanation:

By contrast, software is the set of instructions that can be stored and run by hardware. Hardware is so-termed because it is "hard" or rigid with respect to changes, whereas software is "soft" because it is easy to change.

Hardware is typically directed by the software to execute any command or instruction. A combination of hardware and software forms a usable computing system, although other systems exist with only hardware.

Translating an algorithm into the syntax of Java is the design phase of software development.

Answers

Answer:

I think it's false

Explanation:

I don't think so. What makes me hesitate is that you may have been told that in your text or in the classroom.

Here are the steps as I understand them.

Understand the problem you are trying to solve. Design a solution. Draw a flow chart. Write pseudo-code. Write code. Test and debug.

I think you've done the designing long before you start writing code or even pseudo-code.

In order to paint a wall that has a number of windows, we want to know its area. Each window has a size of 2 ft by 3 ft. Write a program that reads the width and height of the wall and the number of windows, using the prompts Wall width: Wall height: Number of windows: Then print the area with two digits after the decimal point: c

Answers

Answer:

The program in Java will be:

import java.util.Scanner;

public class Paint

{

  public static void main(String[] args)

  {

      final int COVERAGE = 350;  //paint covers 350 sq ft/gal

      final int DOOR = 20;

  final int WINDOW = 15;    

  //declare integers length, width, and height;

  int length, width, height, doors, windows;

  //declare double totalSqFt;

  double totalSqFt;

      //declare double paintNeeded;

  double paintNeeded;

    //declare and initialize Scanner object

  Scanner scan = new Scanner (System.in);

  //Prompt for and read in the length of the room

  // finish this -- length =  

  System.out.print("Enter the length of the room: ");

  length = scan.nextInt();

  //Prompt for and read in the width of the room

      System.out.print("Enter width: ");

  width = scan.nextInt();

      //Prompt for and read in the height of the room

  System.out.print("Enter height: ");

  height = scan.nextInt();

      //Prompt for and enter the number of doors    

  System.out.println("Enter the number of doors: ");

  doors = scan.nextInt();

  //Prompt for and enter the number of windows

  System.out.println("Enter the number of windows: ");

  windows = scan.nextInt();

  //Compute the total square feet to be painted--think

     //about the dimensions of each wall

      totalSqFt = 2 * width * height + 2 * length * height - DOOR*doors - WINDOW*windows;

      //Compute the amount of paint needed

      paintNeeded = totalSqFt / COVERAGE;

      //Print the length, width, and height of the room and the

      //number of gallons of paint needed.

  System.out.println("Length= " + length + "\nWidth= " + width +  "\nHeight= " + height + "\nNumber of doors: " + doors + "\nNumber of windows: " + windows + "\nGallons of Paint Needed= " + paintNeeded);Explanation:

Jump to level 1
Given a string, an integer position, and a character, all on separate lines, find the character of the string in that position and
replace it with the character read. Then, output the result.

Ex: If the input is:

warn
0
e

the output is:

earn

Note: Using a pre-defined string function, the solution can be just one line of code.

I am looking for the code for C++ NOT Python. Thanks

Answers

Answer:

Assuming the input string variable is named `input`, the input int variable is named `index`, and the input char variable is named `ch`:

```

input[index] = ch;

cout << input;

```

Explanation:

In C++, you can change specific elements of a string without having to overwrite the entire string (i.e. in C++, strings are mutable).

1.07 (PX: 2 points)Some early computers protected the operating system by placing it in a memory partition that could not be modified by either the user job or the operating system itself. Describe two difficulties that you think could arise with such a scheme.

Answers

Answer:

The user cannot make internal changes, or personalize the computer. Also it would make it very easy for viruses to get into the computers and ccorrupt the entire thing. There is a similar example of this today in Modern Day chromebooks, but earlier computers were not as safe or secure. Also the fact that it can takes up massive amounts of data, requiring more server storage or data storage facilities.

Search the Internet and scan IT industry magazines or Web sites to find an example of an IT project that had problems due to organizational issues. Write a short paper summarizing the key stakeholders for the project and how they influenced the outcome.

Answers

This system aimed to replace an obsolete technology jumble with a more advanced system for earnings monitoring and paychecks for 95,000 teachers, managers, custodians, and other district staff, though and it didn't work and from the start of the project, code bugs and flaws arose.

The Los Angeles Unified School District faced a problem in Jan 2007.For a $95 million project, they developed SAP software. Some professors were unpaid, some overpaid, some unpaid.The school system needed a year and a further $37m to correct the problems. Downtown and Deloitte decided in November of 2008 to resolve a dispute over the work with the contractor agreeing to return $8.25 million in overdue invoices to forgive $7 million to $10 million.The parties involved did the right thing in this case by bringing the subject to the public. It helped create the result they wanted in this way. The proceedings were filed, even if customers did not have their money back, but at minimum people received some reimbursements.

Learn more:

brainly.com/question/11489632

Should robots be programmed to think? What are some positive and negative aspects? explain

Answers

Answer:

Positive affectivity refers to positive emotions and expression, including cheerfulness, pride, enthusiasm, energy, and joy. Negative affectivity is negative emotions and expression, which includes sadness, disgust, lethargy, fear, and distress.

If you are going to analyze and interpret data, you need to do all of the following execept blank.
A study the data
B interpret the data in a way that will support your hypothesis
C) identify the control group and the test group
D watch for similarities and differences between the control and test groups

Answers

Answer:

the answer to the question is C

I need help here please. Am giving brainliest

Answers

Answer:

See below

Explanation:

1. Data type

- S.No = integer (because its a number of sequence)

- Fees Paid = varchar (usually we use varchar to store currency, and process the number for UI, by adding dot or comma)

2. Reg No should be unique for each students and department. I only use the Table 1 for reference, more data would be helpful

3. Reg. No consist of 2 digits of initial department, and 3-4 digits of sequence number that identifies student's no.

What are the major features of React?

Declarative
Centralized
Component-Based
Learn Once, Write Anywhere
Predictable

Answers

JSX - JavaScript Syntax Extension. JSX is a syntax extension to JavaScript.

Virtual DOM. React keeps a lightweight representation of the “real” DOM in the memory, and that is known as the “virtual” DOM (VDOM)

Performance. ...

Extensions. ...

One-way Data Binding. ...

Debugging. ...

Components. ...

State.

To protect your computer software, you should
A- Clean your computer regularly
B- Ignore software updates
C- Install and antivirus program
D- Replace broken parts

Answers

Answer:

C. Install and Antivirus program

C++: Given three strings on separate lines, insert the contents of the second string in the first string right before the third string. Then,
output the result

Ex: If the input is:
FuzzyBear

Wuzzy

Be

the output is:
FuzzyWuzzyBear

Note: Using a pre-defined string function, the solution can be just one line of code.

(I tried using strVar.insert(partStr, str2) but was unsuccessful. I don’t know where I’m messing up. Thank you for your help. I’ve been trying to alter this code for a while now)

Answers

Answer:

Use the .find() function in your first string to give you an index.

Explanation:

Hi! I'm guessing you're taking COP2334 like me. A T.A. helped me figure out what I needed, so I'm passing it on.

Basically, you're given three strings and no integer to use as an index in order to insert the second line. Since you are required to have an index to use the .insert() function, this is "tear-out-my-hair" frustrating. What I failed to remember was that it is totally possible to use a function inside another function to get what you need!

You have been given is a hint as to where str2 goes, in the form of your 3rd string. If I'm right, all of the tests the system will run (mine is in Zybooks) will give a 3rd string that is inside the first string.

String 1: strVar: "FuzzyBear"

String 2: str2: "Wuzzy"

String 3: partStr "Be"

Open your statement with strVar and use the insert.() function. In the insert function, you are required to give a place to start, (your index), then what you want to insert. Your index will be the .find() function, searching in StrVar for partStr. The second part of the .insert() function is str2.

Hope that helps!

we cannot use MS Word 2003 in laptop truebor false​

Answers

Answer:

False

Explanation:

we can use Microsoft Office Software on any laptop

Answer:

U can install it in ur brand new laptop, but they are not certified to be compatiable with windows 10 but might work with or without compatibility mode.Please be aware that Office Starter 2010 is not supported. You will be prompted to remove it before the upgrade starts.

Explanation:

Brainliest plzzz

This number is written in binary (base 2). Convert it to decimal (base 10).



10110110

Answers

Answer:

Binary 10110110

Decimal 182

Hexadecimal B6

Bits 8

Equation 128 + 32 + 16 + 4 + 2

Explanation:

https://www.binary-code.org/binary/8bit/10110110/

Have a bless day and send positive all over the world :D

Any computer expert to help me answer this question.. am giving brainliest

Answers

Answer and explanation:

1. It asks for the total expenses for the month of March. So, let's add all of the March expenses up.

1,600 + 2,100 + 850 + 480 + 2,800 = $7,830 (which is the answer)

2. It asks what the highest expense for wages are. That would be $5,080. Out of all of the times that the wages have been paid, in April, it was the highest, at $5,080. So, $5,080 is the answer.

3. It asks how many items cost less than $1,000 in April. The only thing that cost less than $1,000 in April was the water because it only cost $370. So, the answer would be 1.

Hope this helps!

the time base for a timer instruction is 0.01 seconds. what is the delay time if the preset value is 3000

Answers

Answer:

suppose time base is set to 0.1 and delay increment is set to 50. timer has 5 sec delay (0.1*50)

not sure.

Question: 5
In 2014, what percentage of the world population has access to the Internet?
Less than 30%
Less than 50%
Over 50%
Over 80%
Please help

Answers

The answer would be less than 50

In 2014, less than 50% percentage of the world population has access to the Internet option (B) less than 50% is correct.

What is a computer?

A computer is a digital electronic appliance that may be programmed to automatically perform a series of logical or mathematical operations. Programs are generic sequences of operations that can be carried out by modern computers. These apps give computers the capacity to carry out a broad range of tasks.

As we know,

Internet, a system design that allows different computer networks all over the world to communicate, has transformed communications and methods of commerce.

Thus, in 2014, less than 50% percentage of the world population has access to the Internet option (B) less than 50% is correct.

Learn more about computers here:

https://brainly.com/question/21080395

#SPJ2

Time complexity gives a rough idea of how long it will take for an algorithm to execute

based on two things: the size of the input it has and the amount of steps it takes to complete,

whereas space complexity is also the amount of memory required to execute an algorithm based

on the size of input it has or given.

Using mathematical notations or diagrams critically explain the time and space complexity of the

code below. 10 marks

int a = 0;

for (i = 0; i < N; i++) {

for (j = N; j > i; j--) {

a = a + i + j;

}

}​

Answers

Answer:

Explanation:

O(N*N) or O(N2).

Explanation:

The time complexity can be measured by caculating the number of times the loop will execute.

The above code runs total no of times

= N + (N – 1) + (N – 2) + … 1 + 0

= N * (N + 1) / 2

= 1/2 * N^2 + 1/2 * N

O(N^2) times.

Thus Time complexity is O(N*N) or O(N2).

When i=0, it will run 0 times.

When i=1, it will run 1 times.

When i=2, it will run 2 times and so on.

So the time complexity will be O(N*N) or O(N2).

The function O(n2) has a complexity that is proportional to the square of the input size.

O(n2) with 2 total iterations.

O(N^2) is for → 2 nested “for loops”

We usually want to know how many steps an algorithm will take for an input of size ‘N' when calculating complexity.

This example contains two ‘for' loops, each of which will execute ‘N' times for each element ‘N'. As a result, it will run N2 times in total. In large O notation, we'd state the complexity of this algorithm is O(N2).

Time Complexity:

The amount of time it takes an algorithm to finish a computation.

What factors contribute to the complexity of time?

Looping (for, while)

Big O Notation:

The language and metric we use to describe how long an algorithm takes to run.

O(n²) Quadratic Time

Two nested loops are involved.

Each item from two different collections must be compared to one another.

Space Complexity:

Space complexity is the measurement of memory (space) that an algorithm requires, similar to time complexity.

What determines the complexity of space?

Variables

Allocations

Space Complexity: O(1) space

Because of the nested for loops The time complexity is going to be quadratic.

As a result, the Space Complexity will be O(1) space.

Worst case space complexity: O(1)

Hence,

Time Complexity: O(n²)

Space Complexity: O(1)

Other Questions
Nnnnnnnnnnnnnnnnnnnnnnn 11- k/2 = 60what is k? Please Help :(I've been trying this math rpoblem and I keep messing up..not getting an answer on the screen Thank you to anyone who answers :) This is what I do with a pen and paper 3. How should we govern the government ? How are birds adapted ? __________ helps your body use or break down the fats, proteins, and carbohydrates in foods you eat, and it helps your nervous system function properly. It is needed so you can have healthy skin, hair, and eyes as well as a healthy liver. In addition to playing a role in breaking down fats, proteins, and carbohydrates for energy, this vitamin is critical for manufacturing red blood cells. It is also important for maintaining a healthy digestive tract, and it helps the body use other vitamins, particularly B2 (riboflavin).Group of answer choicesVitamin B5 (pantothenic acid)Vitamin CVitamin B7 (biotin)Vitamin K When I am 5% older than I am now, I will be 21 years old. How old am I now? FREE BRAINLY PLZ HELP 50 PTS!!Simplify -5(20 + 3)-115-10385-97 karen is buying new clothes. her favorite store has shirts on sale for $10 and pants for $20. she wants to buy at least 6 items to mix and match and spend no more than $100 before taxes.write the system of inequalities that could be used to solve the problem. DON'T SOLVE Rounding 55,183 to the nearest thousand gives 1. Why did France and Britainfight in the war? Vous preferer sentnce explain similie and a metaphor for a beginner hydrogen bond is an example for? (PLEASE HELP!) a) ion- dipole Interaction b)dipole - dipole Interaction c) dipole - induced dipole Interaction d) induced dipole- induced dipole Interaction Which group of words create mood in thepassage?Certain it is, that, some fifteen or twentyyears after the settlement of the town, thewooden jail was already marked withweather-stains and other indications of age,which gave a yet darker aspect to its beetle-browed and gloomy front.The Scarlet Letter,Nathaniel Hawthornedarker, gloomytwenty, darkertwenty, settlementgloomy, town -9 + 9 = 0Propiedad Circle the word that does not belong overalls mittens shirt trousers socks clothes Write the use of these computers. Analog computer Mainframe computerMini computerLaptop computer Desktop Computer Brody wants to ride his bicycle 60 miles this week. He has already ridden 12 miles. If he rides for 6 more days, which equation could be used to determine xx, the average number of miles he would have to ride to meet his goal?