I’ve searched the web and i found interesting that the most of the people who learn a new programming language choose to build a temperature converter in their first apps created. Maybe we can call it the second Hello World 🙂
I think it is because a temperature converter uses some key features: data input, data processing and data output. Different temperatures scales make it easy to get used with selectors and buttons, and also with math.
Here is a list with temperature converter app withing different applications:
1. C# Â – Â http://www.overclock.net/application-programming/603490-my-simple-fahrenheit-celcius-converter-c.html
2. C – http://www.hawkee.com/snippet/6960/
3. Java – http://www.dreamincode.net/forums/showtopic108917.htm
4. Python – http://kenno.wordpress.com/2006/04/06/temperature-conversion/
5. Javascript – http://computer.howstuffworks.com/question369.htm
6. VB – http://the-journals.blogspot.com/2009/01/create-temperature-converter-with-vb.html
7. Perl – http://search.cpan.org/~mopy/Convert-Temperature-0.03/lib/Convert/Temperature.pm
Now, I can learn how to write temperature converter in other 6 different languages. Nice!
It seems that temperature converter exercise for programming is pretty popular: http://pebblebrookhigh.typepad.com/sidney_fair/2010/01/java-programming-assignment-1212010.html