Engineering Matlab help?

Engineering Matlab help?



In recent years, the price of gasoline has increased dramatically. Automobile companies have responded with more fuel-efficient 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? They hybrid vehicles are considerably more expensive, but get better gas mileage. Consder the prices and gas efficiencies show in the table.

One way to compare two vehicles is to fin the "cost to own"
Cost to own=purchase cost+upkeep+gasoline cost
Assume upkeep costs are equal to zero
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 of 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. Postion the text box using the gtext function





No Answers Posted Yet.