<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;">Sandy,<div>I thought &nbsp;this question had already been answered by the community… Or am I missing something?</div><div><br></div><div>Don Slater</div><div><br><div><div>On Mar 12, 2014, at 9:10 PM, 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);">I have two students who have completed the entire Alice book. They did every definition, question and programming assignment in the book! We have moved onto a java book to prep them for the AP exam. Chapter 1 of that book has the following question</span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">:<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 con</span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">&nbsp;</span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">fident 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>