On Nov 14, 10:49 ¨Âí¬ ÍáôôèåÍïóó ¼í®®®Àíïóó®îáíå¾ ÷òïôåº > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > The three rules of Ruby Quiz 2: > > 1. ¨Âìåáóäï îïðïóô áîóïìõôéïîïò óðïéìåäéóãõóóéïî æïôèéó > quiz until 48 hours have passed from the time on this message. > > 2. ¨Âõððïòô Òõâù Ñõéú âù óõâíéôôéîç éäåááó ïæôåáó ùïãáî¡ > Visit <http://splatbang.com/rubyquiz/>. > > 3. ¨Âîêïù> > Suggestion: ¨Â ÛÑÕÉÚÝ éî ôèóõâêåãïæ åíáéìó áâïõôèðòïâìå> helps everyone on Ruby Talk follow the discussion. ¨Âìåáóòåðìôï > the original quiz message, if you can. > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > ## Unit Conversion (#183) > > Google added a calculator to its search engine a while back. Enter > "convert 50 miles to kilometers", or even just "50 mi to km", and the > first "search" result will tell you that 50 miles is 80.4672 > kilometers. This works for units other than length. Try "33 ml to > gal", "6 hours to minutes", and"50 stones to lbs", and you'll see that > Google's calculator knows a lot of different units and how to convert > between them all. > > Your task is to write a units converter script. The input to the > script must be three arguments: the quantity, the source units, and > the destination units. The first example above would be run like this: > > ruby convert.rb 50 miles kilometers > > Or, using abbreviations: > > ruby convert.rb 50 mi km > > Support as many units and categories of units (i.e. volume, length, > weight, etc.) as you can, along with appropriate abbreviations for > each unit. This will be interesting. I'm not going to endeavor into myself b/c I help maintain Stick (http://stick.rubyforge.org) which already does this (and there's another lib out there that does it too). But it will be interesting to see how others approach it. Thanks, T.