Find the cost to own as a function of the number of miles


In recent years, the price of gasoline has increased dramatically. Automobile companies have responded with more fuel-effi cient cars, in particular, hybrid models. But will you save money by purchasing a hybrid such as the Toyota Camry rather than a Camry with a standard engine?

The hybrid vehicles are considerably more expensive, but get better gas mileage. Consider the vehicle prices and gas effi ciencies shown in Table.

One way to compare two vehicles is to find the "cost to own."
Cost to own = Purchase cost + Upkeep + Gasoline cost

Assume for this exercise that the upkeep costs are the same, so in our comparison we'll set them equal to zero.

Table : A Comparison of Standard and Hybrid Vehicles

Year

Model

Base

Gas Efficiency,

 

 

MSRP

in•town/highway

2008

Toyota Camry

$18,720

21/31 mpg

2008

Toyota Camry Hybrid

$25,350

33/34 mpg

2008

Toyota Highlander 4WD

$28,750

17/23 mpg

2008

Toyota Highlander 4WD Hybrid

$33,700

27/25 mpg (hybrids may actually get better mileage in town than on the road)

2008

Ford Escape 2WD

$19,140

24/28 mpg

2008

Ford Escape 2WD Hybrid

$26,495

34/30 mpg

(a) What do you think the cost of gasoline will be over the next several years? Prompt the user to enter an estimate of gasoline cost in dollars/ gallon.

(b) Find the "cost to own" as a function of the number of miles driven for a pair of vehicles from the table, based on the fuel price estimate from part a. Plot your results on an x-y graph. The point where the two lines cross is the break-even point.

(c) Use the ginput function to pick the break-even point off the graph.

(d) Use sprintf to create a string identifying the break-even point, and use the result to create a text-box annotation on your graph. Position the text box using the gtext function.

Request for Solution File

Ask an Expert for Answer!!
Microeconomics: Find the cost to own as a function of the number of miles
Reference No:- TGS01375559

Expected delivery within 24 Hours