Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 22nd, 2006, 10:43 AM   #31
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Create classes that have the properties of things like vectors, complex numbers, Cartesian co-ordinates etc. Take your inspiration from math and physics. While making the classes include functions that properly manipulate and allow calculations using those data types.
And that's "DON'T WRITE PROGRAMS" ????
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 22nd, 2006, 7:27 PM   #32
gryfang
Programmer
 
gryfang's Avatar
 
Join Date: May 2006
Location: Ohio
Posts: 36
Rep Power: 0 gryfang is on a distinguished road
Send a message via AIM to gryfang
Quote:
Originally Posted by Basu
Don't write programs ... try writing programs...
I'm sorry I just had to do that

I think what (s)he means is not doing full blown time consuming projects and doing minor tasks instead (which aren't necessarily executable).

The immediate benefit is that you see progress as you complete tasks and have something tangible to rate, of course you can do that with large projects provided you know how to plan prototyping correctly
__________________
--------------------
LOAD "*" ,8,1

God bless
- Gryfang
gryfang is offline   Reply With Quote
Old May 25th, 2006, 7:05 AM   #33
megamind5005
Programmer
 
megamind5005's Avatar
 
Join Date: Dec 2004
Location: UK
Posts: 53
Rep Power: 4 megamind5005 is on a distinguished road
I was just thinking, how about make a version of the Towers of Hanoi game? If you don't know about it, google spews out hundreds of good pages on it.

I'm thinking you can record the position of each disk and redraw a graphical representation using ASCII art (unless you're very good at GUI) everytime a change is made. Then you can either have a user give commands as to put what where, but also have a traced solution.

This is a classic problem used in many computer science books so you'll probably come across an algorithm to solve the problem fairly soon, but this algorithm is very general. The interesting part will be how you implement it in a command line interface. You could even take up the suggestion of using classes (e.g. disk objects etc).

I'd do this myself too, if it wasn't for my upcoming exams
__________________
Tetris is so unrealistic
megamind5005 is offline   Reply With Quote
Old May 29th, 2006, 12:01 PM   #34
jj_frap
Newbie
 
Join Date: May 2006
Posts: 1
Rep Power: 0 jj_frap is on a distinguished road
Factorials are fun!

<3 probability models and combinatorics

No wonder I've made so much playing poker given that I love the stuff...Now I'm teaching myself Python though...I'm taking a breather from C/C++ because the pointers and memory-related bitch work are driving me nuts.

Python's syntax is also far easier...Hell, it makes VB6 look obfuscated. :-)
jj_frap is offline   Reply With Quote
Old May 29th, 2006, 4:41 PM   #35
free-zombie
Programmer
 
free-zombie's Avatar
 
Join Date: May 2006
Location: Bavaria, Germany
Posts: 50
Rep Power: 0 free-zombie is an unknown quantity at this point
Send a message via ICQ to free-zombie Send a message via MSN to free-zombie Send a message via Yahoo to free-zombie
These excercises should keep my brother reasonably occupied for a while when he wants to program... (he wants to learn programming )
I mentioned factorials to him - and surprisingly he asked me how to do functions in python again today Tomorrow I'll give him a little rehash on loops - and maybe he'll manage factorials on his own, maybe not...
free-zombie is offline   Reply With Quote
Old May 30th, 2006, 12:32 AM   #36
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

Write a Python program that tells us what factorials are good for!
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old May 30th, 2006, 8:03 AM   #37
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Calculating blocking factors .
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 30th, 2006, 11:10 AM   #38
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

At the presently going interest rate (6%), calculate how long it would take to pay off the national debt (USA), if you could set aside (squeeze out of the taxpayers) one trillion Dollars a year.

Google for the present value of the debt.

That assumes that all further deficit spending can be stopped (wishful thinking).
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC