Clay’s Programming Work

Student Data System

For my applications of programming class, I made the back-end of a C++ application that manages student data.

This back-end uses an object-oriented approach, creating a “roster” object that nests “student” object pointers within an array. “Student” objects have their own private data and public getter/setter functions found in “Student.cpp”.

The main() function currently runs single-case tests for the following functions;
– Creating a class roster from string/string-array inputs (using custom constructor)
– Printing all entries from a class roster
– Printing roster entries with invalid emails
– Printing average days left in classes for each student
– Printing students by specified degree program
– Removal of student from roster
– Error message triggered by invalid removal
– Destructor for roster class

Click below for the source and .exe

This Website!

This website serves as the face of my small web design business. It is made in WordPress and uses lots of custom CSS. Its design is inspired by some of my earlier pure HTML-CSS versions of the site (one of which is demoed on this page).
Feel free to navigate around using the menu at the top! You can return to this page by clicking “Programming” in the top menu.

Simple Snake-like Game

This C++ program is a simple console application implementing basic functions to control a player entity and detect overlap (collisions) with the players growing tail. Boundaries of the play area screen-wrap. Screen refresh is spotty due to the nature of windows command line.

Click below for the source and .exe

Website With Cart Logic

I made this website from scratch using public domain images, and handwritten HTML, CSS, and Javascript.

The buttons animate on mouse hover, and the “Store” page implements Javascript event listeners on every input element and dynamically adds new listeners for new cart item as they are added. These listeners call functions that calculate updates the cart total and apply them.

Global Distance Program (In Progress)

The program I am currently working on uses a back-end of C++ and SQLite to process a database of locations with latitude-longitude coordinates, and calculate precise distances between using the Haversine formula. It uses the Qt framework for a front-end. The code for the Haversine formula is shown below.