Find the domain and range of these functions.
a. the function that assigns to each nonnegative integer its last digit.
b. the function that assigns the next largest integer to a positive integer
c. the function that assigns to a bit string the number of one bits in the string
d. the function that assigns to a bit string the number of bits in the string