Sir , Why don't you just post the your code and then we can guide you? We can't just write the code for you !!! . This place is to learn and advance not to get away with a homework. I am willing to help you solve this issue if you show me how far you got on your code. Thanks