1. Describe what a function does in your own words
- A function is an equation where a number is replaced with a variable. This variable varies depending on which one you replace it with. Therefore resulting in an output.
2. Calculate the output of the following function
```
f(x) = {
x^2 if x is even
x+10 if x is odd
}
```
What will be the output for the following inputs?
*** a) f(2)**
*** b) f(7)**
*** c) f(0)**
- a. 4
- b. 17
- c. 0
3. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
-
- f(x) = { (x / 4) - 5 }