Welcome to my Programming page

All engineering majors at ISU must learn a programming language, either C or FORTRAN, during the basic program that makes up the first 2 to 3 semesters of all engineering programs. I took the course taught in C. And then later I took a course in C++. C++ is an expanded version of C with all the old commands included but new also.  Some of the new commands are basically improved versions of the old ones, ether being easier to use or harder to mess up.  The main advantage of C++ is that vastly increases programer ability to automate a task for each other.

I've decided to make a web page featuring programs I've made in C/C++. All of them were made for fun.

It doesn't do exactly what I wanted it to do but this program makes a web page. On the web page are numbers displayed in the color they corresponds to. (yes, each color in your browser actually is named by a number)

In Physics 221 each section has its worksheet grades adjusted so that the sections work sheet average matches the average of its members test scores. This is supposed to adjust for the differences in how strictly each TA  grades. This got me to wondering how my section was faring against the rest.  The course web page at the time listed hundreds of student by section number. It had too many students on it for me to tell how my section was doing compared with the rest.  So one night I made a program to take the raw grades from the course web page and make a easily understandable report.  While it is a bit complicated for a non programer to understand I'm including a copy of my program here.  Also I'm including a sample of its output that was made soon after the second test. These grades did not yet include lab/recetation which counts for 1/4 of the grade. I also ran my program after the final and here is how the class grades look when all was said and done.

The summer of 2000 I became interested in prime numbers and have written a class that can output all the prime numbers between 1 and 1,000,000. While I have modifications yet to try I am posting this class along with another function. The class can also factor a number. The independent function can display numbers in bases other than just 10. Anything from base 2 to base 62. Past base sixteen I just made up my own convention since I don't know of any convention for digits that large. I have put all this in one file that could be used as a header file, it is very well documented and even contains a commentary on object oriented programming in the header.

A sizeable number of small primes can be found quickly by trial division or by crossing out multiples of primes. This means for just a few primes it's faster to calculate them than to read them off a disk. However a list of prime numbers can come in handy if finding them 'on the fly' isn't feasible. I've written a program that test odd numbers with the minimum number of divisions necessary to determine primality. The primes are then saved to a text file. The program takes both the name of the text file to create and the largest possible number wanted as input and makes a file with all primes smaller than that number.