<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
12 * 2^10 = 12,288 bytes, and the question is about bits (8 bits in a byte).
<div><br>
</div>
<div>As for the colors, you don’t really have to consider RGB when counting the bits. In the “old days” when monitors could not display 24-bit color, we used look-up tables to get different color palettes. 8-bit color was a common case, and GIF files still
 use 8-bit color. There are only 256 different colors, but which ones they are is controlled by a color look-up table. Each 8-bit value (between 0 and 255) is used to look in a table of colors. Each table entry has a regular 24-bit RGB value for that color.
 The 6 bits in your question could be used to form a 64-entry look-up table.</div>
<div><br>
</div>
<div>Another way to interpret it, however, is that the 6 bits are split up evenly between R, G, and B, so there are 2 bits for each color channel. There are a total of 2^6 = 64 different colors, and each channel has 2^2 = 4 different variations.</div>
<div><br>
</div>
<div>James<br>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>--</div>
<div>Dr. James Vanderhyde</div>
<div>Math and Computer Science</div>
<div>Benedictine College</div>
<div><a href="mailto:jvanderhyde@benedictine.edu">jvanderhyde@benedictine.edu</a></div>
<div><a href="http://vanderhyde.us/~james/pro/">http://vanderhyde.us/~james/pro/</a></div>
</div>
</span></div>
<br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On Mar 5, 2014, at 12:30 AM, Sandy Graham &lt;<a href="mailto:sandyg@gvtc.com">sandyg@gvtc.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 7.5pt;">
<div class="WordSection1" style="page: WordSection1;">
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">The book I just started has this question:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">“If a picture was made up of 64 possible colors, how many bits would be needed to store each pixel of the picture?”<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I thought RGB values would be required so was trying to figure out an answer from that (though the book doesn’t give much information on how to do that exactly), but the
 answer key says the answer is 6. I can see that 2^6 = 64 and assume that’s where the 6 came from, but why is that the answer? How does 6 bits yield 64 possible colors? Don’t RGB values have to be considered?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">&nbsp;</span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Then the next question asks, “How many bits are there in 12 KB?”<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">So 12 * 2^10 = 12,288, right? I’m pretty confident of my answer, but I wanted to double check with a reliable source as the answer key says 98, 304 is the correct answer.
 The key is wrong, right?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">&nbsp;</span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-left: 7.5pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks! I didn’t know where else I could get a reliable answer to this!<o:p></o:p></span></p>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 14pt; font-family: 'Brush Script MT'; color: rgb(31, 73, 125);">Your sister in Christ,<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 14pt; font-family: 'Brush Script MT'; color: rgb(31, 73, 125);">&nbsp;</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 14pt; font-family: 'Brush Script MT'; color: rgb(31, 73, 125);">Sandy Graham<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">&nbsp;</span></div>
</div>
</div>
_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" style="color: purple; text-decoration: underline;">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" style="color: purple; text-decoration: underline;">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>