![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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 ...") # waittry 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 ...") # waitor there is that code you can mess with. |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0
![]() |
These are too simple and you already gave the source, so what's the point
? |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
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! |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
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 |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#7 | |
|
Hobbyist Programmer
|
Quote:
|
|
|
|
|
|
|
#8 |
|
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. :-) |
|
|
|
|
|
#9 |
|
Programming Guru
![]() |
Sweet suggestions bl00d. =}
While you're at it commodore, might as well hack my bank account as well. Heh. |
|
|
|
|
|
#10 | |
|
Hobbyist Programmer
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|