Questions: A museum charges 7 per person for a guided tour with a group of 1 to 12 people or a fixed 91 fee for a group of 13 or more people. Write a function relating the number of people, n, to the cost, C.
C(n)= if 0<n< if n >=
Transcript text: A museum charges $\$ 7$ per person for a guided tour with a group of 1 to 12 people or a fixed $\$ 91$ fee for a group of 13 or more people. Write a function relating the number of people, $n$, to the cost, $C$.
\[
C(n)=\left\{\begin{array}{ll}
\square & \text { if } 0
Solution
Solution Steps
To solve this problem, we need to define a function \( C(n) \) that calculates the cost based on the number of people \( n \). The function will have two cases:
If \( 0 < n < 13 \), the cost is \( 7 \) dollars per person.
If \( n \geq 13 \), the cost is a fixed \( 91 \) dollars.
Solution Approach
Define a function C(n) that takes the number of people \( n \) as input.
Use an if-else statement to determine the cost based on the value of \( n \).
Return the calculated cost.
Step 1: Define the Cost Function
We need to define a function \( C(n) \) that calculates the cost based on the number of people \( n \). The function will have two cases:
If \( 0 < n < 13 \), the cost is \( 7 \) dollars per person.
If \( n \geq 13 \), the cost is a fixed \( 91 \) dollars.
Step 2: Case Analysis
For \( 0 < n < 13 \):
\[
C(n) = 7n
\]
For \( n \geq 13 \):
\[
C(n) = 91
\]
Step 3: Piecewise Function
We can write the cost function \( C(n) \) as a piecewise function:
\[
C(n) = \begin{cases}
7n & \text{if } 0 < n < 13 \\
91 & \text{if } n \geq 13
\end{cases}
\]