answer.
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
Deffense
3 months ago
12

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.051) / 12 (Note: Output directly. Do not store in a variable.). c
Computers and Technology
1 answer:
Rzqust [1K]3 months ago
3 0

Response:

See the explanation

Clarification:

/Initializing variables

integer currentPrice

integer lastMonthPrice

integer changeLastMonth

float mortgage

//Taking input

currentPrice = Get next input

lastMonthPrice = Get next input

//Determining price change

changeLastMonth = currentPrice - lastMonthPrice

//Calculating mortgage

mortgage = (currentPrice * 0.051) / 12

//Displaying output

Put "This house costs $" to output

Put currentPrice to output

Put "\nThe change is $" to output

Put changeLastMonth to output

Put " since last month." to output

Put "\nThe monthly estimated mortgage is $" to output

Put mortgage to output

You might be interested in
You've been given a new cell phone with a 2 gigabyte data plan. You plan to use your phone for text messages, images,
Natasha_Volkova [1026]
The correct option is "video". This is because video formats are more compact compared to text or songs, which are also subjected to lossy compression. The advantages of video encoding are more effective in handling lossy compression, and since text and audio require less information, they compress better. Videos and images necessitate high quality, therefore they are also more suitable for lossy compression.
5 0
1 month ago
Three business partners are forming a company whose name will be of the form "name1, name2 and name3". however, they can't agree
zubka84 [1067]

ANSWER: You must use 3 print line commands here. Thus, the optimal code looks like this:

import java.util.Scanner;

public class business {

public static void main(String args[]){

Scanner stdin = new Scanner(System.in);

String Larry = stdin.nextLine();

String Curly = stdin.nextLine();

String Moe = stdin.nextLine();

System.out.println(Larry + "\t" + Curly + "\t" + Moe);

System.out.println(Larry + "\t" + Moe + "\t" + Curly);

System.out.println(Curly + "\t" + Larry + "\t" + Moe);

System.out.println(Curly + "\t" + Moe + "\t" + Larry);

System.out.println(Moe + "\t" + Larry + "\t" + Curly);

System.out.println(Moe + "\t" + Curly + "\t" + Larry);

}

}

5 0
3 months ago
Other questions:
  • Write a code segment to change the name of the Thing object something such that the new name consists of the old name with one c
    12·1 answer
  • Why computer is known as versatile and diligent device ?explain​
    14·1 answer
  • 1. Orthographic Drawings are used to express ideas that are more complicated. Explain the purpose of the different views and the
    7·1 answer
  • Form the recurrence relations (RRs) for the number of vertices and the number of edges of a hypercube of n dimensions, Hn. Solve
    13·1 answer
  • Olivia needs to get permission to use a graph of data gathered by a trade association she plans to include the graph in a report
    10·2 answers
  • Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, a
    10·1 answer
  • Define a function PrintFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand.
    9·1 answer
  • The ____________ protocol enables two users to establish a secret key using a public-key scheme based on discrete logarithms
    10·1 answer
  • Given: an int variable k, an int array current Members that has been declared and initialized, an int variable memberID that has
    11·1 answer
  • A bicycle sharing company is developing a multi-tier architecture to track the location of its bicycles during peak operating ho
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!