07-07-2010, 09:27 AM
I just made my first program with Ruby! A badass tip calculator. At first while reading these books on the programming language, I was pretty overwhelmed. I did the tutorials for "Hello World" and whatnot, studied variables and conditions, and decided to just wing it and apply some of the things I learned. Simple math was obvious from the start, so I thought a tip calculator would be a great test of skill. My particular program utilizes simple variables, the gets method for requesting user input, if-else condition to check for negative numbers, and of course the math to calculate your share of the bill.
I'm really satisfied with myself at this point and feeling pretty excited about learning Ruby. I thought I'd share it with the community so they can feel as much joy as I do :P
Oh well, off to learn more!
I'm really satisfied with myself at this point and feeling pretty excited about learning Ruby. I thought I'd share it with the community so they can feel as much joy as I do :P
Oh well, off to learn more!
THIS THREAD HAS JUST BEEN AMP-LIFIED.