David W. answered 12/01/15
Tutor
4.7
(90)
Experienced Prof
A function is a mapping or one value (indicated by the independent variable) to another variable (indicated by the dependent variable). The mapping produces, at most, one output for each input. Those conditions make it a function.
In this problem, the number of hats purchased is the independent variable.
The amount of money the costumes cost is the dependent variable (because it "depends" on the number of hats purchased).
Domain: The domain of a function is the set of all possible input values (often the "x" variable), which produce a valid output from a particular function. It is the set of all real numbers for which a function is mathematically defined.
Range: The range is the set of all possible output values (usually the variable y, or sometimes expressed as f(x)), which result from using a particular function.
In this problem, the domain of the function is "between 5 and 12 hats." (integers between 5 and 12)
We calculate: (number of hats)*(cost per hat) = cost [number of hats cancels out, leaving only cost]
So, the range includes the numbers 35, 42, 49, 56, 63, 70, 77, and 84. Only those integers!