Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.Lookup the ASCII character code on the web and give the ASCII code in binary f

ID: 3878933 • Letter: 1

Question

1.Lookup the ASCII character code on the web and give the ASCII code in binary for the following 5 characters and the decimal equivalent for the binary pattern. Q, q, 6 0 and blank.
For example the ACSII code for 'A' is 01000001 and the decimal value for that pattern in simple binary is 65

2. Suppose you wish to rescan the image in question 2 in colour and you have two possible scanner settings; the first setting to scan 8 bit colour and a second setting to scan 16 bit colour. 8 bit colour means that the image requires 1 byte per pixel in each of the three colours of red, green, blue. 16 bit colour means that the image requires 2 bytes per pixel in each of the three colours of red, green, blue.

         a. How many bytes are required to store the image in 8 bit and 16 bit colour respectively?

         b. If your USB flash memory key has 32 GB of storage space. How many images can be stored on your key in 8 bit and in 16 bit colour? You may use the approximate definitions of MB and GB

         c. How many different colours are represented in "8 bit colour"?

         d. How many different colours are represented in "16 bit colour" ?

Explanation / Answer

1.

For Q the ASCII value is 81 in decimal and 01010001 in binary

For q the ASCII value is 113 in decimal and 01110001 in binary

For 6 the ASCII value is 54 in decimal and 00110110 in binary

For 0 the ASCII value is 48 in decimal and 00110000 in binary

For blank the ASCII value is 0 in both decimal and binary

2.

I am unsure of the size of image in pixels as the image size is not given here.

Say, the image size is mxn pixels.

a.

For 8-bit colour, each pixel size is 8-bits or 1 byte. So, the size of image will be m*n*8 bits or m*n Bytes

For 8-bit colour, each pixel size is 16-bits or 2 bytes. So, the size of image will be m*n*16 bits or m*n*2 Bytes

b.

For 8-bit,

As we saw, in the above answer each image size is m*n Bytes. The number of images that can fit in will be32*106B/(m*n)B

For 16-bit,

As we saw, in the above answer each image size is m*n*2 Bytes. The number of images that can fit in will be 32*106B/(m*n*2)B or 16*106B/(m*n)B

For an n-bit colour, the maximum number of colours that can be represented are 2n

c. For an 8-bit colour, 28 colours or 256 colours can be represented

d. For a 16-bit colour, 216 colours or 65536 colours can be represented

Hope this helps. Do Upvote! :)