Prob-8 In shopping for a new house, you must consider several factors. In this p
ID: 3639117 • Letter: P
Question
Prob-8 In shopping for a new house, you must consider several factors. In this
problem the initial cost of the house, estimated annual fuel costs, and
annual tax rate are available. Write a program that will determine the
total cost after a five-year period for each set of house data below. You
should be able to inspect your program output to determine the "best
buy."
Initial House Cost Annual Fuel Cost Tax Rate
$175,000 $2500 0.025
$200,000 $2800 0.025
$210,000 $2050 0.020
To calculate the house cost, add the fuel cost for five years to the initial
cost, then add the taxes for five years. Taxes for one year are computed
by multiplying the tax rate by the initial cost. Write and call a function
that displays instructions to the program user and another function that
computes and returns the house cost given the initial cost, the annual
fuel cost, and the tax rate.