To express the dollar cost
-
For the first hour (0 < t ≤ 1):
- The cost is $5.
- This can be expressed as:
-
For up to 2 hours (1 < t ≤ 2):
- The cost is a flat rate of $10.
- This can be expressed as:
-
For the entire day (t > 2):
- The cost is an all-day fee of $12.
- This can be expressed as:
Now we can combine these pieces into a piecewise function that describes the cost
Summary
Thus, the dollar cost