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 (currentPrice * 0.051) / 12 (Note: Output directly, do not store in a variable, and end with a newline).
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.0.
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.
LabProgram.java
1 import java.util.Scanner;
2
3 public class LabProgram {
4 public static void main(String[] args) {
5 Scanner scnr = new Scanner(System.in);
6 int currentPrice;
7 int lastMonthsPrice;
8 currentPrice - scnr.nextInt();
10 last MonthsPrice = scnr.nextInt();
11
12 /* Type your code here. */
13 }
14 ]
15

Respuesta :

, 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='.\n')

, 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='.\n')

See more about python at brainly.com/question/13437928?

Ver imagen lhmarianateixeira