View Single Post
  #8 (permalink)  
Old 07-04-2008, 04:31 PM
Pancrazio Pancrazio is offline
Newbie
 
Join Date: Jun 2008
Posts: 17
Rep Power: 2
Pancrazio is on a distinguished road
Default Re: Need Help finding Beginners guide/tutorial

Quote:
Originally Posted by RobertQQ View Post
One last quick question . Do you all know of a site that has a whole bunch of problems like that for beginners? I tried googling it but couldnt find anything. Thanks again!!
Some books on programming contain exercises So maybe you can download a beginners guide for C# and get some exercises out of that.
There must be websites with exercises too, but I don't know any.
I can also give you some if you want.
From easy to more difficult, all for console applications:
The first 5 are for some insight in loop structures and algorithms, if you already did the christmas tree with success, skip the first 4.

1. create a number of x's depending on the input of the user in line
input:
5
output:
xxxxx

2. same for 'square'
input:
3
output:
xxx
xxx
xxx

3. triangle
input:
4
output:
x
xx
xxx
xxxx

4. Christmas tree

5. Rhombus
input:
5
output:
oox
oxxx
xxxxx
oxxx
oox

You have to look out first this one, because you will have to validate the input here, the program will not work for some input.

6. Coin flipper: Create a program that generates random x's and o's.
input:
10
example output:
oxoxxxooxo

7. Xav's program: create a program that will return all prime numbers till a certain number.
input:
10
output:
2 3 5 7

8. Create a program that will copy the contents of a txt file containing code with comments leaving the comments out:
input file contains:
Hello // this is a word
Hello, I'm Steeve. /* This is a sentence */
output file contains:
Hello
Hello I'm Steeve.

Tip: in a windows txt file you need "\r\n" to display a new line, not just "\n".

Note: these exercises learn you nothing but loops and basic functions and some algorithmic thinking. If you're able to do this you should begin to learn about classes etc.
Reply With Quote