##### Info Systems programming simple problem

 Programming Tutor: None Selected Time limit: 1 Day

1.      The Happy Company makes superballs in these colors: Red, Blue, Yellow and Green.

A.If they were going to store the colors in a database using a single letter or extended ASCII  code, ‘R’,’B’,’Y’, or ‘G’, then how many bytes of storage would it take to store that character?

B. How many bits would be needed to store each character?

C. If they were going to create a color code using the minimum number of bits of storage, how many bits would be required?

Nov 30th, 2015

The answer to this really depends on what database they are going to use to store the data.  However generally speaking to store a single character, such as the R B Y or G, as a single letter or ASCII code takes a single byte which is 8 bits.  If you only had to store that they had made one of four choices the smallest amount of space would be two bits.   Because with two bits you can represent 0, 1, 2, and 3 (or 00, 01, 10, 11 in binary) which you can translate to being:

R = 0 = 00

B = 1 = 01

Y = 2 = 10

G = 3 = 11

Q)  If they were going to store the colors in a database using a single letter or extended ASCII  code, ‘R’,’B’,’Y’, or ‘G’, then how many bytes of storage would it take to store that character?

A)  1

Q)  How many bits would be needed to store each character?

A)  8

Q)  If they were going to create a color code using the minimum number of bits of storage, how many bits would be required?

A) 2

Nov 30th, 2015

...
Nov 30th, 2015
...
Nov 30th, 2015
Dec 3rd, 2016
check_circle