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 the next largest integer to a positive integer________________c) the function that assigns to a bit string the number of one bits in the siring________________d) the function that assigns to a bit string the number of bits in the string

SolutionStep 1(a)In the Problem we have to find the domain and range of the function that assign to each non-negative integers its last digit.Here, domain of the function = set of all positive number = Z+ (where Z+ denote the positive number)= {0,1,2,3,4,.............} Range of the function = last digit contain the natural number from 0 to 9 = {x Z | 0 x 9} = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}Step 2(b)In the Problem we have to find the domain and range of function assign the next largest integers to a positive integer.So, domain of the function = set of all positive integer = Z+ (where Z+ denote the positive number) = {0, 1, 2, 3, 4,.............} Range of the function = Z+ - {0} = {1,2,3,4,5…………..} = Z+ - {0, 1} = {2,3,4,5…………..} = Z+ - {0, 1, 2} = {3,4,5…………..}