how to do this?

In 2004 the cost of an average home in CITY was $390,100.
In 2007 the cost was $398,600.

Assuming that the relationship between time and cost is linear, develop a program that predicts the cost of an average home in a given year.
Test your program with the following years: 2010, 2015 and 2020.


any help will be appreciated.

btw it was an example the prof had taken up. so it isn't a homework question. i wasn't able to get the solution.
Last edited on
Topic archived. No new replies allowed.