Functions describe input-output relationships that follow a clear rule. In a function, each input matches one corresponding output. This makes functions useful for showing how quantities change and for making predictions in math and science.
A parking garage fee system is one common example. The input is the number of non-negative hours a car stays inside. Negative time does not make sense in this setting. The total cost starts with a flat entry charge and then rises by a steady hourly rate,...