The price of a pizza is $7.99 plus an additional $1.35 for each topping.

write a function rule f that gives the total price as a function of the number of toppings, x.

number of toppings(x): 0,1,2,6,10,x
price f(x): _,_,_,_,_,_

f(x)=_____

1 answer

To create a function that gives the total price of a pizza based on the number of toppings, we can define the function \( f(x) \), where \( x \) represents the number of toppings.

The base price of the pizza is $7.99, and each topping costs an additional $1.35. Therefore, the total price \( f(x) \) can be calculated using the formula:

\[ f(x) = 7.99 + 1.35 \cdot x \]

Now, let's fill in the values for different numbers of toppings:

  • For \( x = 0 \): \( f(0) = 7.99 + 1.35 \cdot 0 = 7.99 \)

  • For \( x = 1 \): \( f(1) = 7.99 + 1.35 \cdot 1 = 7.99 + 1.35 = 9.34 \)

  • For \( x = 2 \): \( f(2) = 7.99 + 1.35 \cdot 2 = 7.99 + 2.70 = 10.69 \)

  • For \( x = 6 \): \( f(6) = 7.99 + 1.35 \cdot 6 = 7.99 + 8.10 = 16.09 \)

  • For \( x = 10 \): \( f(10) = 7.99 + 1.35 \cdot 10 = 7.99 + 13.50 = 21.49 \)

Based on these calculations, we can summarize the total prices for the specified number of toppings:

  • \( x = 0 \): \( f(0) = 7.99 \)
  • \( x = 1 \): \( f(1) = 9.34 \)
  • \( x = 2 \): \( f(2) = 10.69 \)
  • \( x = 6 \): \( f(6) = 16.09 \)
  • \( x = 10 \): \( f(10) = 21.49 \)

Thus, the final function rule is:

\[ f(x) = 7.99 + 1.35x \]