About The Contest

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.

Navigation

Advertisements

Entry #100121: SQLiteCalc

by Jarmo Torvinen
SQLiteCalc is the first interactive calculator with inbuilt database of known results! In soviet Russia, the calculator asks the results from YOU!

The first time the calculator is started, it generates a database of the most commonly used calculations. If the user presents a calculation for which the calculator doesn't know (an/the) answer, it asks the user for a result. This result is then saved to the database. If the result can be found from the db, it is shown to the user.

The expansion possibilities are endless! Think about "related searches", "other users that have calculated 34+23 also calculated 45+34 and 58+96"...

The program uses SQLITE library which has been placed on
public domain (see sqlite3.c and sqlite3.h for details).

Download0 Comments