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 >=

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
failed

Solution

failed
failed

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:

  1. If \( 0 < n < 13 \), the cost is \( 7 \) dollars per person.
  2. If \( n \geq 13 \), the cost is a fixed \( 91 \) dollars.
Solution Approach
  1. Define a function C(n) that takes the number of people \( n \) as input.
  2. Use an if-else statement to determine the cost based on the value of \( n \).
  3. 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:

  1. If \( 0 < n < 13 \), the cost is \( 7 \) dollars per person.
  2. If \( n \geq 13 \), the cost is a fixed \( 91 \) dollars.
Step 2: Case Analysis
  1. For \( 0 < n < 13 \): \[ C(n) = 7n \]
  2. 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} \]

Final Answer

\[ C(n) = \begin{cases} 7n & \text{if } 0 < n < 13 \\ 91 & \text{if } n \geq 13 \end{cases} \]

Was this solution helpful?
failed
Unhelpful
failed
Helpful