1-) Describe what a function does in your own words
= Function takes an input uses the given formula to produce an output.
2-) 1. Calculate the output of the following function
f(x) = {x^2 if x is even , x+10 if x is odd}
Output
a) f(x)2x2 = 4
b-) f(x) = 7+10 = 17
c-) f(x) = 0x0 = 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
f(x)= 20/4 - 5 = 0