Problema Solution

Your favorite cat groomer charges according to your cat’s weight. If your cat is 5 pounds and under, the groomer charges $20. If your cat is above 5 to 10 pounds, she charges $30. If your cat is over 10 pounds, she charges $30, plus an additional $1 for each pound.Write a piecewise function that describes what your cat groomer charges.

Answer provided by our tutors

Let 'x' represent the weight of the cat and f(x) the piecewise function:

          20, if x <= 5

f(x) =  30, if 5 < x <= 10

          30 + (x - 10), x >=10