<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Garfield Computer Science &#187; Ms. Martin</title>
	<atom:link href="http://www.garfieldcs.com/author/ms-martin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.garfieldcs.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 05:04:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Emma Meersman</title>
		<link>http://www.garfieldcs.com/2011/09/emma-meersman/</link>
		<comments>http://www.garfieldcs.com/2011/09/emma-meersman/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 01:04:39 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[Beyond the Classroom]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=3132</guid>
		<description><![CDATA[Emma was a Microsoft intern after taking Exploring Computer Science.]]></description>
			<content:encoded><![CDATA[<div id="attachment_3133" class="wp-caption alignleft" style="width: 310px"><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7613.NEF_.jpg"><img class="size-medium wp-image-3133" title="DSC_7613.NEF" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7613.NEF_-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Emma with her intern presentation poster.</p></div>
<p>Emma Meersman (Garfield &#8217;12) was a Microsoft intern the summer after her junior year.  She had taken Exploring Computer Science and worked on 3 Xbox-related projects at Microsoft Research.</p>
<p>Here&#8217;s how she describes her project:<br />
&#8220;The Xbox Kinect currently does not make full use of its speech interface. To change this, the Microsoft Speech Team is conducting user studies to gain a wide variety of voice samples that help to improve the speech recognition algorithms. Also, by recognizing common speech patterns when applied to a constant situation, we can begin to designate groups of certain phrases to be used in popular Kinect Games. Likewise, we are also working with a driving simulator to measure the ability of drivers to concentrate in unexpected situations when given alerts as they interact with people and technology.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/09/emma-meersman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alisa at MSR</title>
		<link>http://www.garfieldcs.com/2011/09/alisa-at-msr/</link>
		<comments>http://www.garfieldcs.com/2011/09/alisa-at-msr/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:48:32 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[Beyond the Classroom]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=3120</guid>
		<description><![CDATA[Alisa interned with the Speech Research group at Microsoft Research.]]></description>
			<content:encoded><![CDATA[<div id="attachment_3121" class="wp-caption alignleft" style="width: 310px"><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7620.NEF_.jpg"><img class="size-medium wp-image-3121" title="DSC_7620.NEF" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7620.NEF_-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Alisa with her poster at the intern presentation event.</p></div>
<p>Alisa, Garfield &#8217;11, worked on a system to translate TED talks from Chinese to English in the Speech Research group at Microsoft Research the summer after her senior year.  She had just completed AP Computer Science.</p>
<p>Here&#8217;s how Alisa describes her project which she worked on with two other interns:</p>
<p>&#8220;Our main project this summer was building machine translation systems and experimenting with different data pre-processing methods and parameters to optimize translation quality. The results from our experiments will be used in our team’s submission to the IWSLT2011 (an annual international spoken language translation contest).<br />
We also spent time recording English sentences to expand our group’s speech/transcript/translation parallel data collection.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/09/alisa-at-msr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grant Bronsdon</title>
		<link>http://www.garfieldcs.com/2011/09/grant-bronsdon/</link>
		<comments>http://www.garfieldcs.com/2011/09/grant-bronsdon/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:36:18 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[Beyond the Classroom]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=3115</guid>
		<description><![CDATA[Grant interned at Microsoft Research the summer after his junior year.]]></description>
			<content:encoded><![CDATA[<div id="attachment_3116" class="wp-caption alignleft" style="width: 310px"><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7626.NEF_.jpg"><img class="size-medium wp-image-3116" title="DSC_7626.NEF" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7626.NEF_-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Grant Bronsdon with a Windows Phone 7 and the poster he made for the intern presentation.</p></div>
<p>Grant Bronsdon (Garfield &#8217;12) spent the summer after his junior year as a Microsoft Research intern.  He worked on <a href="http://www.touchdevelop.com/" onclick="urchinTracker('/outgoing/www.touchdevelop.com/?referer=');">TouchDevelop</a>, a system for creating Windows Phone 7 programs directly on the phone.  Grant had the opportunity to record <a href="http://channel9.msdn.com/Blogs/Peli/TouchDevelop-Getting-Started" onclick="urchinTracker('/outgoing/channel9.msdn.com/Blogs/Peli/TouchDevelop-Getting-Started?referer=');">a video</a> introducing the system.  Grant took Creative Computing his sophomore year and APCS++ his junior year.</p>
<p>Here&#8217;s how Grant described his intern project:<br />
&#8220;Programming languages as we think of them today are designed for the computer, to be typed out on a keyboard. TouchDevelop is a new programming application designed for Windows Phone where you can program directly on your touch screen. The language and environment is built around it, and my project was to create games for the application, some of which shipped with version 2.0, and to conduct user studies to determine how to improve the application.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/09/grant-bronsdon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jenny Lin</title>
		<link>http://www.garfieldcs.com/2011/09/jenny-lin/</link>
		<comments>http://www.garfieldcs.com/2011/09/jenny-lin/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 23:53:03 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[Beyond the Classroom]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=3108</guid>
		<description><![CDATA[Jenny worked on natural language processing summer ’11.]]></description>
			<content:encoded><![CDATA[<div id="attachment_3109" class="wp-caption alignleft" style="width: 310px"><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7635.NEF_.jpg"><img class="size-medium wp-image-3109 " title="DSC_7635.NEF" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/09/DSC_7635.NEF_-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Jenny with her poster at the intern presentations.</p></div>
<p>Jenny Lin (Garfield &#8217;12) worked on a system for converting English task descriptions into <a href="http://en.wikipedia.org/wiki/Windows_PowerShell" onclick="urchinTracker('/outgoing/en.wikipedia.org/wiki/Windows_PowerShell?referer=');">PowerShell</a> commands at Microsoft Research the summer after her junior year.  She had taken AP CS as a sophomore.</p>
<p>Read more about the <a href="http://careers.microsoft.com/careers/en/us/highschoolintern.aspx" onclick="urchinTracker('/outgoing/careers.microsoft.com/careers/en/us/highschoolintern.aspx?referer=');">Microsoft internship program</a> and apply!</p>
<p>Here&#8217;s how Jenny described her project:<br />
&#8220;I am working with <a href="http://research.microsoft.com/en-us/groups/nlp/" onclick="urchinTracker('/outgoing/research.microsoft.com/en-us/groups/nlp/?referer=');">natural language processing</a>. The first part of my project dealt with writing English queries and using logic to translate them into corresponding PowerShell script, so that a computer could effectively execute the script and give the user a desired outcome. The ultimate goal is to find correlation and alignment between the English and PowerShell pairs so that English queries can be “translated” into PowerShell script. I wrote programs in Visual Studio to extract text from answered forum posts.</p>
<p>Next, I wrote code using existing language models and classifiers, along with some feature engineering, so that the classifier could distinguish between English and PowerShell script and extract the PowerShell script from the thousands of forum texts I had gathered.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/09/jenny-lin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010-2011 APCS Projects</title>
		<link>http://www.garfieldcs.com/2011/08/201-2011-apcs-projects/</link>
		<comments>http://www.garfieldcs.com/2011/08/201-2011-apcs-projects/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 21:40:14 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[2010 APCS]]></category>
		<category><![CDATA[2010 APCS++]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=2853</guid>
		<description><![CDATA[These impressive projects were created in the last 6 weeks of AP Computer Science.  This is only a small selection of all that was created &#8212; see YouTube videos for all of them!  Projects can be launched in a new window by using the &#8216;launch&#8217; link.  
NOTE: some will be too big to fit on your screen, some only work on certain browsers and others may crash!  Launch at your own risk.  Try clicking in the window if there is no response to your clicks ...]]></description>
			<content:encoded><![CDATA[<p>These impressive projects were created in the last 6 weeks of AP Computer Science.  This is only a small selection of all that was created &#8212; see <a href="http://www.youtube.com/garfieldcs" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs?referer=');">YouTube videos</a> for all of them!  Projects can be launched in a new window by using the &#8216;launch&#8217; link.  </p>
<p><b>NOTE</b>: some will be too big to fit on your screen, some only work on certain browsers and others may crash!  Launch at your own risk.  Try clicking in the window if there is no response to your clicks or key presses.</p>
<div class="project2011" style="float:right"><img src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/08/gbusviewer.png" alt="" title="gbusviewer" width="75" height="75" class="alignnone size-full wp-image-2961" />
<div>
<p class="title">Garfield Bus Viewer</p>
<p class="author">Lucas</p>
<p class="description">Displays real-time bus arrivals and departures for stops around Garfield.</p>
<p class="links"><a href="http://www.youtube.com/garfieldcs#p/c/E705FA9D00AAC111/0/1-5yBcMuFwg" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs_p/c/E705FA9D00AAC111/0/1-5yBcMuFwg?referer=');">video</a> | <a href="http://garfieldcs.com/static/2011apcs-projects/garfield-bus-viewer" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/garfield-bus-viewer?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/08/slime.png" alt="" title="slime" width="75" height="75" class="alignnone size-full wp-image-2966" />
<div>
<p class="title">Slimeball</p>
<p class="author">Max</p>
<p class="description">One or two player volleyball game.</p>
<p class="links">video | <a href="http://garfieldcs.com/static/2011apcs-projects/slimeball" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/slimeball?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img src="http://garfieldcs.com/static/2011apcs-projects/wake-up-call/wuc.png" alt="" width="75" height="75" class="alignnone size-full wp-image-2952" />
<div>
<p class="title">Wake Up Call Game</p>
<p class="author">Nikki and Angela</p>
<p class="description">Control the mouse and catch all the cocoons with your pellets.</p>
<p class="links"><a href="http://www.youtube.com/garfieldcs#p/c/E705FA9D00AAC111/2/-sbpNxt3Slo" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs_p/c/E705FA9D00AAC111/2/-sbpNxt3Slo?referer=');">video</a> | <a href="http://garfieldcs.com/static/2011apcs-projects/wake-up-call/" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/wake-up-call/?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img class="alignnone size-full wp-image-2941" title="go" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/08/go.png" alt="" width="75" height="75" />
<div>
<p class="title">Game of Go</p>
<p class="author">Michael</p>
<p class="description">An abstract strategy board game for two players.</p>
<p class="links"><a href="http://www.youtube.com/garfieldcs#p/c/E705FA9D00AAC111/26/g2Gyrh5Cqj4" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs_p/c/E705FA9D00AAC111/26/g2Gyrh5Cqj4?referer=');">video</a> | <a href="http://garfieldcs.com/static/2011apcs-projects/go" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/go?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/08/nej.png" alt="" title="nej" width="75" height="75" class="alignnone size-full wp-image-2952" />
<div>
<p class="title">NEJ Game</p>
<p class="author">Nicky, Evan and Joel</p>
<p class="description">Turn-based fighting game inspired by Fire Emblem. Be sure to read the help screens!</p>
<p class="links"><a href="http://www.youtube.com/garfieldcs#p/c/E705FA9D00AAC111/1/F8xvjNsSFOM" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs_p/c/E705FA9D00AAC111/1/F8xvjNsSFOM?referer=');">video</a> | <a href="http://garfieldcs.com/static/2011apcs-projects/nej/" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/nej/?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img src="http://garfieldcs.com/static/2011apcs-projects/helicopter/helicopter.png" alt="" width="75" height="75" class="alignnone size-full wp-image-2952" />
<div>
<p class="title">Helicopter Game</p>
<p class="author">Raisah and Elise</p>
<p class="description">Control the helicopter and avoid the obstacles.</p>
<p class="links">video | <a href="http://garfieldcs.com/static/2011apcs-projects/helicopter/" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/helicopter/?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img src="http://garfieldcs.com/static/2011apcs-projects/nonogram/nonogram.png" alt="" title="nej" width="75" height="75" class="alignnone size-full wp-image-2952" />
<div>
<p class="title">Nonogram</p>
<p class="author">Summer and Sean</p>
<p class="description">Grid logic puzzle.  Get each row and column to have the right number of filled squares.</p>
<p class="links"><a href="http://www.youtube.com/garfieldcs#p/c/E705FA9D00AAC111/4/l6hEUCm6g4w" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs_p/c/E705FA9D00AAC111/4/l6hEUCm6g4w?referer=');">video</a> | <a href="http://garfieldcs.com/static/2011apcs-projects/nonogram/" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/nonogram/?referer=');">launch</a></p>
</div>
</div>
<div class="project2011" style="float:right"><img src="http://garfieldcs.com/static/2011apcs-projects/bomberman/bomberman.png" alt="" width="75" height="75" class="alignnone size-full wp-image-2952" />
<div>
<p class="title">Bomberman Game</p>
<p class="author">David</p>
<p class="description">Bomb the other players.</p>
<p class="links">video | <a href="http://garfieldcs.com/static/2011apcs-projects/bomberman/" target="_blank" onclick="urchinTracker('/outgoing/garfieldcs.com/static/2011apcs-projects/bomberman/?referer=');">launch</a></p>
</div>
</div>
<p><a href="http://www.youtube.com/garfieldcs" style="font-size: 160%; font-weight: bold;" onclick="urchinTracker('/outgoing/www.youtube.com/garfieldcs?referer=');">See more project videos&#8230;</a></p>
<p>If you don&#8217;t see your project here but would like it to be up, please <a href="mailto:helenemartin@garfieldcs.com">e-mail Ms. Martin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/08/201-2011-apcs-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scratch lists rubric</title>
		<link>http://www.garfieldcs.com/2011/06/scratch-lists-rubric/</link>
		<comments>http://www.garfieldcs.com/2011/06/scratch-lists-rubric/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 18:12:17 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[2011 Spring Creative Computing]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=2847</guid>
		<description><![CDATA[___/2 &#8211; user controls a sprite
___/3 &#8211; items added to list based on user interaction
___/4 &#8211; length of list checked at some point (to see if all items gathered, or to access each element in a loop, for example)
___/3 &#8211; contents of list examined (for example, allow casting a spell if spell book is in inventory)
___/3 &#8211; some way to successfully complete the game
___/5 &#8211; clear theme and story
___/2 &#8211; multiple scenes (for example, move from room to room, opening screen with instructions, etc)
___/3 &#8211; significant additional features (interaction with ...]]></description>
			<content:encoded><![CDATA[<p>___/2 &#8211; user controls a sprite<br />
___/3 &#8211; items added to list based on user interaction<br />
___/4 &#8211; length of list checked at some point (to see if all items gathered, or to access each element in a loop, for example)<br />
___/3 &#8211; contents of list examined (for example, allow casting a spell if spell book is in inventory)<br />
___/3 &#8211; some way to successfully complete the game<br />
___/5 &#8211; clear theme and story<br />
___/2 &#8211; multiple scenes (for example, move from room to room, opening screen with instructions, etc)<br />
___/3 &#8211; significant additional features (interaction with other sprites, many objects, etc)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/06/scratch-lists-rubric/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scratch final project: role playing game</title>
		<link>http://www.garfieldcs.com/2011/06/scratch-final-project-role-playing-game/</link>
		<comments>http://www.garfieldcs.com/2011/06/scratch-final-project-role-playing-game/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 04:43:03 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[2011 Spring Creative Computing]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=2843</guid>
		<description><![CDATA[You will create a small game in which you control a character and pick up objects to be added to your inventory (represented as a list).  Those items can simply be gathered from the ground, you could have to buy them from a store or maybe you have to catch them as they fall.  There should be some place to go and deliver your items to.  They should only be accepted if there are more than a certain number.
Interesting twists might include a timer, items to avoid, obstacles, etc.
See an ...]]></description>
			<content:encoded><![CDATA[<p>You will create a small game in which you control a character and pick up objects to be added to your inventory (represented as a list).  Those items can simply be gathered from the ground, you could have to buy them from a store or maybe you have to catch them as they fall.  There should be some place to go and deliver your items to.  They should only be accepted if there are more than a certain number.</p>
<p>Interesting twists might include a timer, items to avoid, obstacles, etc.</p>
<p>See an example <a href="http://scratch.mit.edu/projects/SampleProjectsTeam/583768" onclick="urchinTracker('/outgoing/scratch.mit.edu/projects/SampleProjectsTeam/583768?referer=');">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/06/scratch-final-project-role-playing-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python final: bagels</title>
		<link>http://www.garfieldcs.com/2011/06/python-final-bagels/</link>
		<comments>http://www.garfieldcs.com/2011/06/python-final-bagels/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 04:18:31 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[2011 Spring Creative Computing]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=2839</guid>
		<description><![CDATA[Thanks to Stuart Reges for this assignment.
Bagels is a variant of the game Mastermind where the computer thinks of a random number and the user tries to guess it.  Each digit of the random number is a value from 1 through 9.  No 0 digits are included, but the same digit might appear more than once.  The player is told how many digits the number has.
Below is a sample log of execution (user input is underlined).
I'm thinking of a 4 digit number. Each digit is between 1 and 9.
Try to guess my ...]]></description>
			<content:encoded><![CDATA[<p><em>Thanks to Stuart Reges for this assignment.</em></p>
<p>Bagels is a variant of the game Mastermind where the computer thinks of a random number and the user tries to guess it.  Each digit of the random number is a value from 1 through 9.  No 0 digits are included, but the same digit might appear more than once.  The player is told how many digits the number has.</p>
<p>Below is a sample log of execution (user input is underlined).</p>
<pre>I'm thinking of a 4 digit number. Each digit is between 1 and 9.
Try to guess my number, and I'll say "fermi" for each digit you get right,
and "pica" for each correct digit in the wrong place. 
Your guess? <span style="text-decoration: underline;"><strong>1234</strong></span>
bagels 
Your guess? <span style="text-decoration: underline;"><strong>5678</strong></span>
fermi fermi pica 
Your guess? <span style="text-decoration: underline;"><strong>5566</strong></span>
fermi 
Your guess? <span style="text-decoration: underline;"><strong>8877</strong></span>
fermi pica pica 
Your guess? <span style="text-decoration: underline;"><strong>5587</strong></span>
fermi pica pica 
Your guess? <span style="text-decoration: underline;"><strong>5778</strong></span>
fermi fermi pica pica 
Your guess? <span style="text-decoration: underline;"><strong>7578</strong></span>
You got it right in 7 guesses!</pre>
<p>You may assume that the user will always type a valid guess with the right number of digits from 1-9. In this game, the clues are based on digits that match between the correct answer and the guess. For each digit in the guess that exactly matches the corresponding digit in the answer, the program outputs &#8221;fermi&#8221;.  For each digit in the guess that appears in the answer but at a different index, the program outputs &#8220;pica&#8221;.  If the guess does not contain any digits that appear in the correct answer (no &#8220;fermi&#8221; or &#8220;pica&#8221; matches), the output is &#8220;bagels&#8221;.</p>
<p>It is helpful to think of the correct answer and the guess as lists of digits.  Suppose the correct answer is 7578 and the user guesses 5587 (the fifth guess in the log above).  The above guess has one &#8220;fermi&#8221; match: the digit 5 at index 1.  It also has two &#8220;pica&#8221; matches: the digit 8 at index 2 of the guess matches the 8 at index 3 of the correct answer; and the digit 4 at index 3 of the guess matches the 4 at index 0 of the correct answer.</p>
<p><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/06/Screen-shot-2011-06-15-at-9.10.45-PM.png"><br />
<img title="Screen shot 2011-06-15 at 9.10.45 PM" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/06/Screen-shot-2011-06-15-at-9.10.45-PM.png" alt="" width="556" height="152" /></a></p>
<p>Notice that the digit 5 at index 0 of the guess is neither a fermi match nor a pica match; there is a digit 5 in the correct answer, but it is already claimed by its fermi match with index 1. index  0 1 2 3 correct answer 7 5 2 8 guess 5 5 8 7 The computer&#8217;s clue consists of the word &#8220;fermi&#8221; once for each fermi match (correct digit at correct index), followed by the word &#8220;pica&#8221; match for each pica match (correct digit, wrong index).  All of the fermi clues are reported first so as not to give any extra information to the player.  The clue for the above guess would be &#8220;fermi pica pica&#8221;.</p>
<p>You should use lists to store the computer&#8217;s random number and the user&#8217;s guesses as appropriate, as shown in the diagrams.  This will be a useful way to represent the numbers so that you can compare them one digit at a time.  You can pull digits off of an int by repeatedly dividing and modding (%) the number by 10.</p>
<p>The most difficult part of the assignment is comparing the user&#8217;s guess to the correct answer and providing the correct clue.  You will likely want to use a &#8220;two phase&#8221; algorithm that compares the two arrays of digits in two passes:</p>
<ul>
<li>The first pass looks for &#8220;fermi&#8221; matches, where a digit in the guess is correct and in the correct place.</li>
<li>The second pass looks for &#8220;pica&#8221; matches, where a digit in the guess exists in the answer, but at a different index.</li>
</ul>
<p>The same digit cannot be used for two different matches.  For example, using the correct answer of 7578 and the guess of 5587 from the previous page, the digit 5 at index 0 of the guess doesn&#8217;t match anything, because the digit 5 in the guess is already claimed as part of a fermi match.  To implement this functionality correctly, you should find  a way to mark individual digits as being &#8220;used&#8221; so that they will not be used again in another match.</p>
<p><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/06/Screen-shot-2011-06-15-at-9.12.42-PM.png"><img class="aligncenter size-full wp-image-2841" title="Screen shot 2011-06-15 at 9.12.42 PM" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/06/Screen-shot-2011-06-15-at-9.12.42-PM.png" alt="" width="756" height="145" /></a></p>
<p>One way to &#8220;mark&#8221; a digit would be to change its value.  But you should be careful not to damage the original list for the correct answer, so you may want to make a copy of it or implement some way to restore its state later.  Note, if list a exists, b = a[:] will store a copy of it in variable b. Careful &#8212; b = a does not do what you want!  Another way to &#8221;mark&#8221; digits would be to keep a separate temporary array of marking values.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/06/python-final-bagels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magic eight ball</title>
		<link>http://www.garfieldcs.com/2011/06/magic-eight-ball/</link>
		<comments>http://www.garfieldcs.com/2011/06/magic-eight-ball/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 05:04:37 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[2011 Spring Creative Computing]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=2834</guid>
		<description><![CDATA[As a quick intro to using lists in both Scratch and Python, you&#8217;ll be creating a magic 8 ball program in both environments.
The programs should prompt the user for a question then answer it with a randomly selected phrase from a fixed list of responses.
The Python program should be text-based and keep prompting the user until a certain phrase (&#8220;quit&#8221;, for example) is typed in.
The Scratch program should include some sort of animation to, for example, show the ball shaking.  Here is an example of what the screen might ...]]></description>
			<content:encoded><![CDATA[<p>As a quick intro to using lists in both Scratch and Python, you&#8217;ll be creating a magic 8 ball program in both environments.</p>
<p>The programs should prompt the user for a question then answer it with a randomly selected phrase from a fixed list of responses.</p>
<p>The Python program should be text-based and keep prompting the user until a certain phrase (&#8220;quit&#8221;, for example) is typed in.</p>
<p>The Scratch program should include some sort of animation to, for example, show the ball shaking.  Here is an example of what the screen might look like:</p>
<p><a href="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/06/Screen-shot-2011-06-13-at-10.02.58-PM.png"><img class="aligncenter size-full wp-image-2835" title="Screen shot 2011-06-13 at 10.02.58 PM" src="http://www.garfieldcs.com/wordpress/wordpress/wp-content/uploads/2011/06/Screen-shot-2011-06-13-at-10.02.58-PM.png" alt="" width="476" height="354" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/06/magic-eight-ball/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning in projects</title>
		<link>http://www.garfieldcs.com/2011/06/turning-in-projects/</link>
		<comments>http://www.garfieldcs.com/2011/06/turning-in-projects/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 04:02:50 +0000</pubDate>
		<dc:creator>Ms. Martin</dc:creator>
				<category><![CDATA[2010 APCS]]></category>
		<category><![CDATA[2010 APCS++]]></category>

		<guid isPermaLink="false">http://www.garfieldcs.com/?p=2816</guid>
		<description><![CDATA[Dear seniors,
I can&#8217;t wait to see your projects.
There&#8217;s a folder in which to turn things in at S:\hmmartin\Writeable\APCS(++) Projects &#8212; access it through My Computer; the S drive should be called something like student data.  Please create a folder for your group.  If you&#8217;re using Eclipse, please copy the entire project folder (use CTRL+C and CTRL+V to make your life easy!).  Please also include your video or just e-mail me a link to YouTube.
I&#8217;m hoping several of you will take care of this on the long period.  It&#8217;s fine if ...]]></description>
			<content:encoded><![CDATA[<p>Dear seniors,</p>
<p>I can&#8217;t wait to see your projects.</p>
<p>There&#8217;s a folder in which to turn things in at S:\hmmartin\Writeable\APCS(++) Projects &#8212; access it through My Computer; the S drive should be called something like student data.  Please create a folder for your group.  If you&#8217;re using Eclipse, please copy the entire project folder (use CTRL+C and CTRL+V to make your life easy!).  Please also include your video or just e-mail me a link to YouTube.</p>
<p>I&#8217;m hoping several of you will take care of this on the long period.  It&#8217;s fine if you want to do it Friday but I&#8217;d like to have some time for us to just be together.  If you&#8217;re really in need of more time, you can give me things over the weekend or on Monday.</p>
<p>Hope you&#8217;re doing great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garfieldcs.com/2011/06/turning-in-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

