174k views
20 votes
You have a dog walking business. You charge based on weight of the dogs. For 45 min walk your prices are

0-15lbs you charge $5
15-45lbs you charge $7
Over 45lbs you charge $9

Define the variables

Write a piece wise function for dog walking business, including the conditional statement for the variables.

User Jwadsack
by
6.2k points

1 Answer

12 votes

Answer:


c(w)=\begin{cases}5,&amp;\text{for }w\le15\\7,&amp;\text{for }15<w\le45\\9,&amp;\text{for }w>45\end{cases}

Explanation:

The charge in dollars (c) for walking a dog of weight w pounds can be described by the function shown above. The function has three parts, one for each weight class. Here, the function value is constant within the weight class.

User Mohebifar
by
5.9k points