Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old May 11th, 2006, 10:50 AM   #1
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
Beginner programming tasks

I once saw a site that had a lot of programming tasks for beginners. They were mostly mathematical problems and stuff like that. Does anyone know of any sites like that? I can't program big stuff currently so I would like to solve problems like that.
commodore is offline   Reply With Quote
Old May 11th, 2006, 11:09 AM   #2
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
make your own little programs

like this

num = input('Insert first number ')
num1 = input(' insert another number ')
print "Your Answer Is ", num + num1

raw_input("Press Enter Key ...") # wait

try making things like that.

name = raw_input("Whats Your Name? ")
print "Your Name Is ", name

# do something with name
if 'n' in name.lower():
   name1 = name.replace('n', 'h')
   name2 = name.replace('n', 'k')
   name3 = name.replace('n', 'j')
   print "Your Name Could Have Been ", name1, "or", name2, "or", name3

if 'f' in name.lower():
   name1 = name.replace('f', 'e')
   name2 = name.replace('f', 'w')
   name3 = name.replace('f', 'z')
   print "Your Name Could Have Been ", name1, "or", name2, "or", name3

if 'p' in name.lower():
   name1 = name.replace('p', 'm')
   name2 = name.replace('p', 'r')
   name3 = name. replace('p', 'q')
   print "Your Name Could Have Been ", name1, "or", name2, "or", name3

raw_input("Press Enter Key ...") # wait

or there is that code you can mess with.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old May 11th, 2006, 2:41 PM   #3
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
These are too simple and you already gave the source, so what's the point ?
commodore is offline   Reply With Quote
Old May 11th, 2006, 2:58 PM   #4
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

The only site I have seen that fits your desription is this one:
http://www.daniweb.com/techtalkforums/thread32007.html
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old May 11th, 2006, 4:12 PM   #5
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
bob, joe, and bill have tools. bob has a hammer and a saw. joe has a saw, drill and a leveler. bill has a hammer and a leveler. count each item and see how many are repeted and by who. display people and their tools aswell as showing the repted tools.
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old May 12th, 2006, 1:02 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
make a recursive power function (enter 2 parameters, the base and the power...e.g. power(2, 3) would return 8).

make a factorial function (recursive or not) 5! = 5*4*3*2*1...by definition 0!=1.

make a "palindrome" program (test to see if input string is a palindrome).

make a function to tell if a number is prime.

hack into my bank account and add 43 gajillion dollars to it.

take a string and print it out backwards.

take a string and replace all vowels with the '*' character.

create a program that implements a four-function calculator

extra credit: implement the above with operator overloading.

this is just some crap i thought of. may be helpful and fun!

good luck.

for any help, suggestions, or whatever, my email is:

bhancock4@gmail.com

or you can skip it and ask someone who really knows.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old May 12th, 2006, 9:28 AM   #7
UnKnown X
Hobbyist Programmer
 
UnKnown X's Avatar
 
Join Date: Dec 2005
Location: Sandvika, Norway
Posts: 114
Rep Power: 0 UnKnown X is an unknown quantity at this point
Send a message via MSN to UnKnown X
Quote:
Originally Posted by bl00dninja
make a recursive power function (enter 2 parameters, the base and the power...e.g. power(2, 3) would return 8).
Extra credit if you make negative exponents correctly!
UnKnown X is offline   Reply With Quote
Old May 29th, 2006, 12:01 PM   #8
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 12th, 2006, 6:17 AM   #9
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,888
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Sweet suggestions bl00d. =}

While you're at it commodore, might as well hack my bank account as well. Heh.
Sane is offline   Reply With Quote
Old May 12th, 2006, 7:29 AM   #10
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
Quote:
Originally Posted by Sane
Sweet suggestions bl00d. =}

While you're at it commodore, might as well hack my bank account as well. Heh.
that would be funny lol.
__________________
Demon101 Production's

Code Forums
demon101 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 11:42 AM.

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