Evaluate the set of elements assigned values by the function
Question: Find the domain and range of these functions. Note that in each case, to find the domain, determine the set of elements assigned values by the function.
a) the function that assigns to each nonnegative integer its last digit
b) the function that assigns to a bit string the number of one bits in the string
c) the function that assigns the next largest integer to a positive integer
d) the function that assigns to a bit string the number of bits in the string
Locate the range and domain of given functions and answer with example.