Final answer:
To solve the student's problem, input the current and last month's house prices, calculate the price change, compute the estimated mortgage, and correctly format the output presenting the figures.
Step-by-step explanation:
To create a program that takes the current price and last month's price of a house as inputs, and outputs a summary of the price change and estimated monthly mortgage, follow these instructions:
- First, prompt the user to input both the current price and the last month's price of the house.
- Calculate the difference between the current price and the last month's price.
- Compute the estimated monthly mortgage using the formula ((currentPrice * 0.051) / 12).
- Finally, format the output to include the current price, the price change, and the mortgage estimate. Ensure that spaces, punctuation, and newlines match the example precisely.
Here's how the output should look like:
This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $850.000000.