PDA

View Full Version : i want to do homework



cmay
March 13th, 2009, 10:46 PM
hi.
i am 37 years old and i live Denmark where we do not teach programming in school like they do in other countries .

i want to ask how typically home work assigments are and i would be happy if i could get some examples (not solutions of course) of homework from all levels of experience.

i study c by myself for no ohter reason other than i would like to learn it.

i am in chapter 2 in the kernighans the c programming language and done all exercises in it up to now. if that tells anyting about my current skill level.

i would like to set up a kind of study plan for myself and i need to give myself "homework" assigments too.
and thats why i am asking for input .


thanks.

monkeyking
March 13th, 2009, 11:01 PM
Make a stack, make a queue.
Then do single linked lists and double linked list.
If you are still upto it.
Then continue with trees.

This is funny to do,
and you will get plenty of references on the web.

gnusci
March 13th, 2009, 11:43 PM
Well, Learn how to use libraries, they will save you a lot of time and you will learn more programing..... Here some great libraries listed:

http://www.boost.org
http://www.netlib.org/lapack
http://www.netlib.org/blas
http://www.mesa3d.org
http://ltilib.sourceforge.net

jimi_hendrix
March 13th, 2009, 11:49 PM
Make a stack, make a queue.
Then do single linked lists and double linked list.
If you are still upto it.
Then continue with trees.

This is funny to do,
and you will get plenty of references on the web.

and then make your own library (basically add some headers and archive it, but use a guide :))

jimi_hendrix
March 13th, 2009, 11:55 PM
Well, Learn how to use libraries, they will save you a lot of time and you will learn more programing..... Here some great libraries listed:

http://www.boost.org
http://www.netlib.org/lapack
http://www.netlib.org/blas
http://www.mesa3d.org
http://ltilib.sourceforge.net

some of those libs (boost) are C++ ones...

days_of_ruin
March 13th, 2009, 11:59 PM
some of those libs (boost) are C++ ones...

I thought C++ was a boost library? :P

monkeyking
March 14th, 2009, 12:00 AM
Well, Learn how to use libraries...
http://www.boost.org
http://ltilib.sourceforge.net

The original poster is asking for homework assignments,
because the poster wants to learn programming.
And you tell him to use libraries to learn it.
:-k
Thats like telling someone who wants to learn a language,
to read the dictionary.

Furthermore the poster is a c user.
And you recommend algebra libraries, image libraries, 3d libs and c++ libs.

This is not very usefull.

To the original poster,
get accuiented with pointers and arrays.
Don't spend to much time with user input/output.
And don't start making guis.

A remember a funny assignment I had some years ago.

Make an arbirary precision integer library.
With the basic math operators.

+-* mod div

good luck

monkeyking
March 14th, 2009, 12:02 AM
I thought C++ was a boost library? :P

hehe
otherway around.

slavik
March 14th, 2009, 05:04 AM
keep doing the K&R excersizes. and what monkeyking said.

cmay
March 15th, 2009, 01:42 PM
thanks
i had initially laid out a plan that i would like to learn by completing these task.
time is not a factor for me in this but quality of my work is.

a:write a small library with functions i implement myself like strcmpy printf and others
to learn how the functions i use works and could be written.

b:
write some of the small unix programs like wc , diff,cat ,echo and so on
to learn how to put programs toghter as such and learn more about the linux system

c:
if i could figure out how to write a small shell. not as complex as the bash shell but a small "hello world" shell.


would that sound like a realistic study plan of one study for himself.
what kind of assigment would you expect if you where to take some programming classes . i am thinking about douing this but i learn much slower than everyone else because i have a lousy short term memory and i also have since i am always tired a slow learning capablitiy .

i would however like to take some class in university or something like that. i know how it is to work hard as i used to do this before i got retired but other than that i never had any education so just to say i have completed some classes about something is a personal experience that is useful.

thanks for the replies btw :)

nvteighen
March 15th, 2009, 08:28 PM
would that sound like a realistic study plan of one study for himself.
what kind of assigment would you expect if you where to take some programming classes . i am thinking about douing this but i learn much slower than everyone else because i have a lousy short term memory and i also have since i am always tired a slow learning capablitiy .

It sounds well to me. Don't care for speed, but for persistance. It's much better to go slower and achieve something than fast and not achieve anything.


i would however like to take some class in university or something like that. i know how it is to work hard as i used to do this before i got retired but other than that i never had any education so just to say i have completed some classes about something is a personal experience that is useful.

As programming is a practical thing, I guess a programming class may be useless. Maybe something on algorithms, maths or whatever that can help you to build up a better theorical background will be really useful.

monkeyking
March 16th, 2009, 12:22 AM
You seem very focused on system programming.

I don't think this is the way to learn programming.
You should start with simpler stuff.

But then again, if you are up to it,
anythings possible.

Sorivenul
March 16th, 2009, 07:08 AM
Good to see you here cmay... ;)


keep doing the K&R excersizes. and what monkeyking said.
I agree with slavik/monkeyking.

As far as K&R is concerned, if you haven't already, take a look at the (dated) course
notes offered here:
http://www.eskimo.com/~scs/cclass/cclass.html

cmay
March 16th, 2009, 07:00 PM
Good to see you here cmay... ;)


I agree with slavik/monkeyking.

As far as K&R is concerned, if you haven't already, take a look at the (dated) course
notes offered here:
http://www.eskimo.com/~scs/cclass/cclass.html (http://www.eskimo.com/%7Escs/cclass/cclass.html)

thanks. this looks very interesting. i made sure i bookmarked it.

thanks for all your replies. :)