You go to Giant to buy some candy. You decide to buy snickers because they have a special deal on snickers. A pound of snickers costs $3.45, but if you buy 4 or more pounds, they only cost $3.00per bag. Write a piecewise function to represent this situation.​

Respuesta :

Answer:

y = x*$3.45 if   0 ≤ x < 4

y = x*$3.00 if   4 ≤ x

Step-by-step explanation:

A piecewise function is a function that behaves differently in diferent intervals of it's domain.

We know that 1lb of candy costs $3.45

But if you buy 4 lb or more, the cost of each lb is $3.00

Then if x represents the number of pounds of candy that you buy, we have the equation:

y = x*$3.45     if     0 ≤ x < 4

y = x*$3.00     if     4 ≤ x