Piecewise functions can be used to represent the cost of items when purchased in quantities,
such as a dozen eggs.