-
A function is a mathematical equation used in computation, that uses a variable (input), processes the mathematical equation and renders an output based on the input.
//Not sure if I got this one right, if anyone could let me know what they think
-
a) 4 BECAUSE if;
x = 2, 2 = even, x = (x^2) the output is 4
b) 17 BECAUSE if;
x = 7, 7 = odd, x = (x+10) the output is 17
c) LET’S TAKE FOR GRANTED 0 IS EVEN (as I’ve always thought it to be); because I’m confused after reading this; https://www.quora.com/Is-zero-even-or-odd
0 BECAUSE if;
x = 0, 0 = even, x = (x^2) the output is 0
-
f(x) = (x/4)-5