Okay, good idea but, you need to do it yourself. And don't ask a question this way. Your question contains more general idea, if you have
any specific problem - post it here.
Quote:
how can i do it?
I guess you'll find your answer
here[
^].
As I assume, this a homework; it won't entertained here.
If you expect us to do your homework, that's not going to work. There's a pretty good reason behind this: "You won't be learn anything, if you expect others do your work for you".
You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out.
Read the
Code Project Quick Answers FAQ[
^] first :)
-KR