Write code segments for the specifications below:
a. Write a code segment that will prompt the user to input a number between 0 and 35, If the number is less than or equal to 9, the program should output the number, w otherwise, it should output A for 10, B for 11, C for 12, 4., and z for 35. (Hint: Use the type cast operator, static_cast
b. Given a set of values in a file called numbers.in, write code to find the smallest number from the list of numbers in that file and output the result to an output file called smallest.out. Choose a valid sentinel value.