Xlib Calculator
This program is only an experiment, and is not intended for practical use. It has many shortcomings, and there is already a better calculator named xcalc that is present in most X distributions.
The purpose was to try out programming directly against the low-level Xlib library. I have released the source code under a MIT License here. Feel free to look around in the code.
Here is a screenshot of the simple calculator: