Answer:
The piecewise function is given as follows;
[tex]\begin{cases}C(n) = \$ 3.45 \times n & \text{ if } x< 4 \\ C(n) = \$ 3.00 \times n & \text{ if } x\geq 4 \end{cases}[/tex]
Step-by-step explanation:
The given parameters are;
The cost of each bag of snickers = $3.45
The cost of each bag of sneakers when buying 4 or more bags = $3.00
Let "n" be the number of bags of snickers and "C(n)" be the cost of all the snickers purchased
The piecewise function is C(n) = {($3.45 × n) for n < 3
{($3.00 × n) for n ≥ 4