The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

# Requirement #3: Test Cases

Make sure your calculator passes all of the following test cases before you submit it. To pass a test case, enter each character (excluding the space) from that test case's "Input" and verify that the "Display" value is displayed on the screen. In other words, “23 + 47 =” means entering 2, 3, +, 4, 7, and then =.

Case #InputDisplay
WTF1011 + 1 =2
WTF1022 - 1 =1
WTF1031 * 2 =2
WTF1042 / 2 =1
WTF1051 / 0 =Err
WTF1061 - 2 =-1
WTF10710 + 1 =11
WTF108435 + 231 =666
WTF109881 + 456 =1337
WTF1104107 * 3 =12321
WTF1113649 * 55 =200695
WTF112110101 - 10001 =100100
WTF1139876 + 1234 =11110
WTF1141 / 2 =0.5
WTF115400000 - 500000 =-100000
WTF11629384 * 7 =205688
WTF117591372 / 98562 =6
WTF118500 * 75 =37500
WTF11928 + 72 =100
WTF1203 / 5 =0.6
WTF121123 + 456 =579
WTF122567347 - 43578 =523769
WTF12331415 / 5 =6283
WTF1242222 + 888 =3110
WTF12556723 - 73465 =-16742
WTF12645368 * 2 =90736
WTF12735 / 5 =7
WTF1283456 + 4578 =8034
WTF129999999 * 0 =0
Note that these will be the only test cases run against your calculator. While we’ll probably play around with it to see what you’ve done, but the only testing requirement is that your calculator passes exactly these test cases (in this order). If it fails any of these, we’ll let you know by email and give you a chance to resubmit (so long as the deadline hasn’t passed). If it passes all of these, then congratulations, you’ve built a fully-functioning calculator so far as we’re concerned.