How many bits are needed to represent all the uppercase and
How many bits are needed to represent all the uppercase and lowercase characters of the alphabet, the digits 0 through 9, and an additional 20 symbols?
Solution
No of Alphabets both upper case and lower case =2*26 =48
no of bits required for 48 is = 6 bits
for 0,1 = 2bits
for 2 = 2bits
for 3 = 2 bits
for 4= 3 bits
for 5 = 3 bits
for 6 = 3 bits
for 7 = 3 bits
for 8 = 4 bits
for 9 = 4 bits
no of bits require for 0 to 9 is 26
and 20 symbols take 5 bits
Total bits for this problem is 6+26+5= 37
