<div dir="ltr">You need to break this down into its component parts:<br>Write a method that tells you score of a character<br>Write a method that tells you the score of a string (hint: use inject:into:)<br>Write a method that tells you the dollar words (hint: use select: and splitOn:)<br>
<br><div class="gmail_quote">2008/9/24 Alex Chi <span dir="ltr">&lt;<a href="mailto:alex_chi99@yahoo.com">alex_chi99@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi guys,<br><br>I am just beginner in Smaltalk and I have some problem with collection in smalltalk. <br>For this problem I have to define the value of an alphabetic character based on its location in the alphabet. So 'a' and&nbsp; 'A' each have value 1, 'b' and 'B' each have 2, etc. Non-alphabetic characters can be considered to have value 0. <br>
The value of a word is the sum of the value of all its characters. So 'Smalltalk' has value 101 and 'abc' has value 6. <br>A dollar word is a word whose value is 100.&nbsp; I want to add a method to the String class that returns all the dollar words in the string.<br>
<br>So for example if the input is &#39;SmallTalk&#39; the result is (&#39;SmallTlk&#39; &#39;SmllTlk&#39;).<br><br>Please kindly help me guys. Really appreciate your
 help.<br><br>Thanks.<br></div></div><br>

      </div><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>