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 equals [0,1]
C.Give n example of a function whose is the set of positive integers and whose range is the set of positive even integers
D. Give an example of a function whose domain is the set of positive even integers and whoce range is the set of positive odd integers
Egive an example of function whose domain is the set of integers and whoce range is the set of positive integers.
F. Give an example of function whose domain is the set of positive integers and whoce range is the set of integers.
plese show me the work

A. To find a function whose domain is the set of real numbers and whose range is the set {-1, 0, 1}, you can use a piecewise defined function. Let's define the function f(x) as follows:

For x ≤ 0, f(x) = -1
For 0 < x < 1, f(x) = 0
For x ≥ 1, f(x) = 1

B. To find a function whose domain is the interval (0,1) and whose range is the closed interval [0,1], you can use a simple linear function. Let's define the function g(x) as follows:
g(x) = x, where x belongs to (0,1)

C. To find a function whose domain is the set of positive integers and whose range is the set of positive even integers, you can use a simple algebraic expression. Let's define the function h(n) as follows:
h(n) = 2 * n, where n belongs to the set of positive integers

D. To find a function whose domain is the set of positive even integers and whose range is the set of positive odd integers, you can also use a simple algebraic expression. Let's define the function k(n) as follows:
k(n) = 2 * n + 1, where n belongs to the set of positive even integers

E. To find a function whose domain is the set of integers and whose range is the set of positive integers, you can use another piecewise defined function. Let's define the function m(x) as follows:
For x < 0, m(x) = -x
For x ≥ 0, m(x) = x

F. To find a function whose domain is the set of positive integers and whose range is the set of integers, you can use a combination of positive and negative values. Let's define the function n(x) as follows:
For even x, n(x) = -(x/2)
For odd x, n(x) = (x+1)/2

These examples should satisfy the given conditions.