Homework tasks for fun
Hey its your favorite friend Metalgod, that little junoir in high school. Well in these festive times and all a programer wants is ideas. Looking for ideas to expand his abilties in C and create a medium to present the knowledge that he has achieved durring his self teaching. If you have any homework tasks, that you might of had in you schooling. So just post a task.
Look through the back catalogue of questions asked on this board, and see if you can answer them yourself, just so you know you can do them.
Just don't post your own answers to old threads.
Of course, the real test of understanding is being able to explain it to someone else.
metalgod you can answer some of mine for fun.
I am glad there are better progammers out there than myself :) Otherwise this class I am taking would suck.
You know, a big part of the problem is that there's different programs for different levels... on one end, there's prime number generators, and on the other end there's neural networks.
Homework programs tend to be too simple to really be interesting or learn anything from. Homework programs also focus too much on input and output formatting, which really detracts from the essence of serious programming problems.
Here's a few fundamental programs that everyone should do at least once....
- Write a program that finds the Nth prime number. Make it as fast as humanly possible.
- There exists at least one configuration of 8 Queens on a chessboard such that no Queen is under attack by any other Queen. Write a program that determines how many such possible configurations exist.
- Write a C program which prints to stdout its own source code. Do not use file operations.
If you really want to test yourself, give yourself 4 hours on a programming contest...
Print it out, and see how many you can get finished.