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
guapka [62]
3 years ago
13

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 (currentPrice * 0.045) / 12. 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 $750
Computers and Technology
2 answers:
lana66690 [7]3 years ago
8 0

Answer:

Here is code in c++.

#include <bits/stdc++.h>

using namespace std;

//main function

int main() {

// variables to store input and calculate price change and mortgage

int current_price,last_price,change;

float mortgage=0;

cout<<"Please enter the current month price:";

//reading current month price

cin>>current_price;

cout<<"Please enter the last month price:";

//reading last month price

cin>>last_price;

// calculating difference

change=current_price-last_price;

 // calculating mortgage

mortgage=(current_price*0.045)/12;

//printing output

cout<<"The change is $"<<change<<" since last month."<<endl;

cout<<"The estimated monthly mortgage is $"<<mortgage<<endl;

return 0;

}

Explanation:

Read the current month price and assign it to "current_price" and last month

price to variable "last_price". Calculate change from last month by subtracting

current_price-last_price.And then calculate monthly mortgage as (current_price*0.045)/12. Then print the output.

Output:

Please enter the current price:200000                                                                                                                          

Please enter the last month price:210000                                                                                                                      

The change is $-10000 since last month.                                                                                                                        

The estimated monthly mortgage is $750

lisov135 [29]3 years ago
3 0

Answer:

current_price = int(input())

last_months_price = int(input())

finalprice= current_price-last_months_price

monthly= (current_price*0.051)/12

print('This house is', '$''{:.0f}'.format(current_price),end='.')

print(' ''The change is', '$''{:.0f}'.format(finalprice), 'since last month.')

print('The estimated monthly mortgage is', '$''{:.2f}'.format(monthly),end='.''\n')

Explanation:

You might be interested in
A chain of coffee servers is sending a spreadsheet of projected costs and profits to some of its investors. When, Kyle, the admi
olga2289 [7]

Answer:

On a spreadsheet application including MS Excel;

He can select the image and hold down the <em>rotation</em> handle above it while sliding the mouse

Explanation:

Manual rotation of a picture or a text box can be performed by selecting the image or text box in MS Word or a spreadsheet application such as MS Excel. With the mouse select the rotation handle of the picture and drag in the direction desired, left or right.

So as to limit the rotation to 15 degrees hold down the shift button while dragging the rotation handle by clicking on it with a mouse and dragging in the desired direction

3 0
3 years ago
Read Chapter 2 in your text before attempting this project. An employee is paid at a rate of $16.78 per hour for the first 40 ho
Vitek1552 [10]

Answer:

Answered below

Explanation:

#Answer is written in Python programming language

hrs = int(input("Enter hours worked for the week: "))

dep = int(input ("Enter number of dependants: "))

pay = 16.78

ovpay = pay * 1.5

if hrs <= 40:

wage = hrs * pay

else:

wage = hrs * ovpay

ss = wage * 0.06

fedtax = wage * 0.14

statetax = wage * 0.05

dues = 10

if dep >= 3:

ins = 35

net_pay = wage - ss - fedtax - statetax - dues - ins

print(wage)

print ( ss, fedtax, statetax, dues, ins)

print (net_pay)

8 0
3 years ago
Write a C++ program that prompt the user to enter three points (x1, y1), (x2, y2), (x3,y3) of a triangle and
My name is Ann [436]

Answer:

#include<iostream>

using namespace std;

int main(){

   int x1,x2,x3;

   int y1,y2,y3;

   cout<<"Enter the value of first point(x1,y1): ";

   cin>>x1>>y1;

   cout<<"\nEnter the value of second point(x2,y2): ";

   cin>>x2>>y2;

   cout<<"\nEnter the value of third point(x3,y3): ";

   cin>>x3>>y3;

   

}

Explanation:

first include the library iostream for use the input/output commands

then, write the main function. within the main function declare the variable which store the value of points.

after that, use the 'cout' for output. It has the function which print the value or message on the screen.

and 'cin' is used to store the value in the variable.

So, in the above code cout ask for enter the value of point and after enter value by user, cin store in the variables.

Note: you have to enter two value with space or by enter.

5 0
3 years ago
The quality of lacking a pattern or organization so that result are unpredictable is also known as?
Aloiza [94]
<h2>Answer:</h2>

The quality of lacking a pattern or organization so that result are unpredictable is also known as<u> Randomness.</u>

<h2>Explanation:</h2>

In the daily routine work, randomness can be defined as the apparent lack of pattern. Randomness occurs when there is no predictability in events. Thus a random pattern of events, steps or symbols often has no sequence and order so they lead eventually towards Randomness. Similarly when elements will not follow an intelligible pattern or a proper combination they will result in Randomness.

<h3>I hope it will help you!</h3>
3 0
3 years ago
Complete the sentence.
sertanlavr [38]

Answer:

computer science

Explanation:

hope this helps

6 0
3 years ago
Read 2 more answers
Other questions:
  • Austin works as a department head and frequently uses presentations to deliver information to his staff. He relies heavily on pr
    5·2 answers
  • Compilers can have a profound impact on the performance of an application. Assume that for a program, compiler A results in a dy
    8·1 answer
  • You have been asked to troubleshoot a legacy system running a critical component on your employer's network. Initial findings in
    7·1 answer
  • Given an list of N integers, Insertion Sort will, for each element in the list starting from the second element: Compare the ele
    8·1 answer
  • What type of multimedia is a game CD? Game CDs are examples of ___ multimedia.
    15·2 answers
  • Design state machines to control the minutes and hours of a standard 24 hour clock. Your clock should include an AM/PM indicator
    11·1 answer
  • Alguien que me ayude haciendo esto :')
    6·1 answer
  • Display all the lines in unixPasswd that contain at least 10 consecutive lowercase letters. How many names are there in total th
    12·1 answer
  • Please help will give brainliest
    12·1 answer
  • Inputs and outputs that allow a user to interact<br> with a piece of software
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!