Home / Expert Answers / Computer Science / 1-20-lab-input-and-formatted-output-house-real-estate-summary-sites-like-zillow-get-input-about-h-pa320

(Solved): 1.20 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about h ...



student submitted image, transcription available below
1.20 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. End the last output with a newline. Ex: If the input is: 200000210000 the output is: This house is \\( \\$ 200000 \\). The change is \\( \\$-10000 \\) since last month. The estimated monthly mortgage is \\( \\$ 850 \\). 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. \\( 485852.3477264 .9 \\times 3 z q y 7 \\) \\begin{tabular}{l|l} LAB & 1.20.1: LAB: Input and formatted output: House real estate summary \\\\ ACTIVITY \\end{tabular} \\( 0 / 10 \\) main.cpp \\( \\begin{aligned} 1 & \\text { \\#include } \\\\ 2 & \\text { using namespace std; } \\\\ 3 & \\\\ 4 & \\text { int main() \\{ } \\\\ 5 & \\text { int currentPrice; } \\\\ 6 & \\text { int lastMonthsPrice; } \\\\ 7 & \\\\ 8 & \\text { cin } \\gg \\text { currentPrice; } \\\\ 9 & \\text { cin } \\gg \\text { lastMonthsPrice; } \\\\ 10 & \\\\ 11 & \\text { cout }<\\text { \"This house is\" using namespace std; int main() \\{ int currentprice; int lastMonthsPrice; cin \\( \\gg \\) currentPrice; cin \\( \\gg \\) lastMonthsPrice; cout \\( \\ll \\) \"This house is\" \\( < \\) end; currentPrice \".\" \\( \\ll \\) endl; return \\( \\theta \\); \\} Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box.


We have an Answer from Expert

View Expert Answer

Expert Answer




We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe