Homework tasks for fun

This is a discussion on Homework tasks for fun within the C Programming forums, part of the General Programming Boards category; Hey its your favorite friend Metalgod, that little junoir in high school. Well in these festive times and all a ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    65

    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.
    You rant and rave about it, but at the end of the day, it doesn't matter if people use it as long as you don't see.
    People are free to read the arguments, but if the only way for you to discover gravity is by jumping off a cliff, then that is what you're going to have to experience for yourself.
    Eventually, this "fast and loose" approach of yours will bite you one too many times, then you'll figure out the correct way to do things. - Salem

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    28
    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.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    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...
    http://www.unf.edu/%7Eychua/progcont2002.html

    Print it out, and see how many you can get finished.
    Callou collei we'll code the way
    Of prime numbers and pings!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. removing default tasks?
    By Scourfish in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-19-2002, 12:36 PM
  2. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 05:49 PM
  3. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 04:16 PM
  4. Homework
    By kermi3 in forum Windows Programming
    Replies: 5
    Last Post: 09-15-2001, 12:48 PM
  5. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21