Input-Output View Math Example 3

Follow the full solution, then compare it with the other examples linked below.

Example 3

easy
A vending machine charges \1.50peritem.Writeafunction per item. Write a function C(n)forthecostof for the cost of nitems,andfind items, and find C(4)andthenumberofitemsforbudget and the number of items for budget \99.

Solution

  1. 1
    C(n)=1.50nC(n) = 1.50n. C(4) = 1.50 \times 4 = \6.00$.
  2. 2
    For budget \9:: 1.50n = 9 \Rightarrow n = 6$ items.

Answer

C(n)=1.50nC(n) = 1.50n; C(4)=\6;; 6itemsfor items for \99
The input-output view helps model real situations. The input is the number of items, the machine multiplies by the price, and the output is the total cost. Working backward (given output, find input) is just solving the equation.

About Input-Output View

The input-output view of a function treats it as a black box: put in a value (input), get out a uniquely determined value (output), without worrying about the internal mechanism.

Learn more about Input-Output View โ†’

More Input-Output View Examples