The basic storage unit of a digital computer is a "bit." A bit is a storage position that can be designated as either on (1) or off (0) at any given time. In converting picture images to a form that can be transmitted electronically, a picture element called a "pixel" is used. Each pixel is quantized into gray levels and coded using a binary code. For example, a pixel with four gray levels can be coded using two bits by designating the gray levels by 00, 01, 10. and 11.
(a) How many gray levels can be quantized using a four-bit code?
(b) How many bits are necessary to code a pixel quantized to 32 gray levels?