I suggest you buy a book on C# and study it. You will learn nothing from our answers. This looks a lot like home work. You will get stuck again in the next excercise and then maybe nobody here will be nice to you. Being a programmer is a great job but it takes a lot of pain to learn.
Rudolf Heijink