Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the real estate appreciation problem of last weeks homework, write a Python program called homevaluepro.py to compute and print the following: The value of
Consider the real estate appreciation problem of last weeks homework, write a Python program called homevaluepro.py to compute and print the following:
- The value of the home three years after the purchase date.
- The total home appreciation value accumulated three years after the purchase date.
However, in this case, the home price and the annual appreciation rates are provided as an input string such as p=$800000, r1=2.3%, r2=5%, r3=6.7%, which specifies that the initial home price is 800000, and the appreciation rates after the first, second and third year are 2.3%, 5% and 6.7% respectively.
The expected input/output behavior of the program is illustrated below for two example inputs:
Enter input string: p=$800000, r1=2.3%, r2=5%, r3=6.7% Home value after three years: 916894.4399999998 Total appreciation after three years: 116894.43999999983 Enter input string: p=$750000, r1=2.3%, r2=4.5%, r3=3.6% Home value after three years: 830640.1949999998 Total appreciation after three years: 80640.19499999983Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started