The following programming projects were found on various websites
and seemed like they might be fun to try. Some are simple exercises,
while others are complex brainteasers. In other words, I was looking
for something to keep my mind busy. Feel free to try your hand at
any of these before looking at my solutions. Maybe you can find a
better way. Enjoy!
I will post links to solutions in multiple languages on this page
(i.e. C++, VB,
PHP, etc...) As they are developed.
~ The Fibonacci Sequence ~
The Fibonacci Sequence is the list of numbers such that the first
two numbers are ones (1) and each subsequent number is the sum of
the previous two numbers (i.e. 1, 1, 2, 3, 5, 8, 13...). This is a
pretty simple program to write.
My Solutions: | C++
| PHP |
~ Prime Numbers ~
A prime number is a number that has exactly two factors, itself and
one. The smallest (and only even) prime is 2. Generating a list of
primes less than a certain number is a time consuming task, therefore
great for a programming project.
My Solutions: | PHP |
~ Base Conversion ~
The challenge here is to write an arbitrary base conversion utility.
It should be able to convert a number in any base into another base.
For example, 10 in decimal (base 10) is 1010 in binary (base 2).
My Solutions: | PHP |
You may want to limit your solution to bases 36 or lower in order to
simplify the list of possible digits to '0' through '9' and 'A'
through 'Z'. Theoretically, this can be extended to any base by
using multiple "digits" to represent each place, but that's overkill,
don't you think?
~ The Quine ~
By definition, a quine is a program that produces its own
complete source code as its only output. Sounds easy, doesn't it?
Give it a try.
My Solutions: | PHP |