To write a function that calculates the total price of a pizza based on the number of toppings, we start with the base price of the pizza and then add the cost of the toppings.
The base price of the pizza is $7.99, and each topping costs an additional $1.35. Thus, if \( x \) represents the number of toppings, the total price \( f(x) \) can be expressed as:
\[ f(x) = 7.99 + 1.35x \]
Now we can evaluate \( f(x) \) for the different values of \( x \) provided.
-
For \( x = 0 \): \[ f(0) = 7.99 + 1.35(0) = 7.99 \]
-
For \( x = 1 \): \[ f(1) = 7.99 + 1.35(1) = 7.99 + 1.35 = 9.34 \]
-
For \( x = 2 \): \[ f(2) = 7.99 + 1.35(2) = 7.99 + 2.70 = 10.69 \]
-
For \( x = 6 \): \[ f(6) = 7.99 + 1.35(6) = 7.99 + 8.10 = 16.09 \]
-
For \( x = 10 \): \[ f(10) = 7.99 + 1.35(10) = 7.99 + 13.50 = 21.49 \]
Now we can summarize the results for various numbers of toppings:
- \( x = 0 \): Price = $7.99
- \( x = 1 \): Price = $9.34
- \( x = 2 \): Price = $10.69
- \( x = 6 \): Price = $16.09
- \( x = 10 \): Price = $21.49
So the function rule is:
\[ f(x) = 7.99 + 1.35x \]