Here's my quick-and-dirty version of the calculator program. It doesn't have a great user interface yet, but it seems to work, and it took me about three hours to write.