A cab company charges a $3.95 flat fee for rides up to 15 miles. For rides over 15 miles, the company charges the $3.95 flat fee and $1.25 per mile for every mile over 15 miles up to 75 miles. For rides over 75 miles the company charges a flat fee of $78.95 and $0.75 per mile over 75 miles. Using this information, write an equation that represents the total cost of the trip as a function of the number of miles traveled. (Remember: Identify your input and output variables, and use proper notation – I recommend you handwrite your function and add a picture in to this document)

Respuesta :

Answer:

There are three intervals depending on  the mileage:

  • 0 - 15 miles
  • 15 - 75 miles
  • More than 75 miles

For each interval we have different cost and equation

Let miles = x, cost  = y, then the equations are:

  • 0 < x ≤ 15       ⇒ y = 3.95
  • 15 < x ≤ 75     ⇒ y = 1.25x + 3.95
  • x > 75             ⇒ y = 0.85x + 78.95