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.
- the function that assigns to each nonnegative integer its last digit
- the function that assigns the next largest integer to a positive integer
- the function that assigns to a bit string the number of one bits in the string
- the function that assigns to a bit string the number of bits in the string