Hello, eddieg0304!
During a 9 hour snowstorm, it snows at a rate of 1 inch per hour for the first 2 hours,
at 2 inches per hour for the next 6 hours, and at a rate of 0.5 per hour for the final hour.
Write and graph a piecewisedefined function that gives the depth of the snow during the snowstorm.
How many inches of snow accumulated from the storm? I sketched the graph first . . . Code:

 R
14½+ o
 Q * :
14 + o :
 *: :
 * : :
 * : :
 * : :
 P * : :
2 + o : :
 * : : :
  o  +   +   +  
 2 8 9

First 2 hours: 1 inch per hour.
. . Point $\displaystyle P\!:\;(2,2)$
Next 6 hours: 2 inches per hour.
. . From $\displaystyle t=2$ to $\displaystyle t=8$, 12 inches of snow were added.
. . Pont $\displaystyle Q\!:\;(8,14)$
Last hour: ½ inch per hour.
. . From $\displaystyle t = 8$ to $\displaystyle t = 9,\;\tfrac{1}{2}$ inch was added.
. . Point $\displaystyle R\!:\;(9,14.5)$
$\displaystyle f(x) \;=\;\begin{Bmatrix}x && 0 \leq x < 2 \\ \\[3mm]2x+2 && 2 \leq x < 8 \\ \\[3mm] \frac{1}{2}x + 14 && 8 \leq x \leq 9 \end{Bmatrix}$