### Please check urgently .I have to submit the assignment

A give an example of a function whose domain equals the set of real numbers and whose range equals the set? the set {-1,0,1} BGive an example of a function whose domain equals (0,1)and whose range