Write the definition of a function absoluteValue, that receives an integer parameter and returns the absolute value of the parameter's value. So, if the parameter's value is 7 or 803 or 141 the function returns 7, 803 or 141 respectively. But if the parameter's value is -22 or -57, the function returns 22 or 57 (same magnitude but a positive instead of a negative). And if the parameter's value is 0, the function returns 0.
The value absolute is the function [tex]|*|: \mathbb{R}\rightarrow \mathbb{R}^+[/tex] defined by [tex]|x|= x[/tex] if [tex]x[/tex] is a positive number and [tex]|x|=-x[/tex] if [tex]x[/tex] is a negative number.