Deep Narayan Dubey
You're right, this is the wrong forum. I will move it to Programming after moderation.
Is this homework? If so, please say so up front.
While it is against LQ policy
to ask us to do
your homework for you:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
you may find many members will help you help yourself.
Please make your next post an answer to this question. TIA.