An M-bit thermometer code for the number k consists of k 1s in theleast significant bit positions and M-k 0s in the more significant bit positions. A binary-to-thermometer code converter has N inputs and 2N-1 outputs. It produces a 2N-1bit thermometer code for the number specified by the input. For example, if the input is110, then the output should be 0111111. Design a 3-to-7 binary-to-thermometer code converter.