I would have used a modern scripting language, such as Python or even Javascript (which would allow the code to run in a browser on a web page), which is typically more human-readable, easier to write and maintain, and also easier to turn into a web app, but I do also appreciate the occasional C source code
Once many years ago I set out to create an astrology web application (yes, astrology!) in C++ to calculate the "sidereal time" of a person's birth to aid in more accurate horoscopes. While it was technically interesting, I don't think C++ was a good choice of technology for the project.