![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
![]()
__________________
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 |
|
|
|
|
|
|
#32 | |
|
Programmer
|
Quote:
![]() 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 |
|
|
|
|
|
|
#33 |
|
Programmer
Join Date: Dec 2004
Location: UK
Posts: 53
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#34 |
|
Newbie
Join Date: May 2006
Posts: 1
Rep Power: 0
![]() |
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. :-) |
|
|
|
|
|
#35 |
|
Programmer
|
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... |
|
|
|
|
|
#36 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Write a Python program that tells us what factorials are good for!
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#37 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#38 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
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! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|