Oh gawd... when will you understand that none of us without lots of research know how to write your button for you? Why in the world should anyone here go out of their way to research and relearn an outdated way of programming that very few people use anymore just so you can copy it and turn it in for homework? ESPECIALLY when all you do is insult us and treat us as though we are a bunch of jerks who take great pleasure in withholding information from newbies who are just asking questions?
We're sorry that you have a crappy teacher, but I'm beginning to think that if you treat him the way you treat us, then I'm sure he's done everything he can to help you and you probably just jumped all over him because he didn't write all your programs for you.
So for the last time, we don't know how to make your button. Lots of information has been given in this thread (especially the functions WaltP gave) that will lead you in the right direction. Play around with them, search the internet about them, whatever. But if you start to understand them then I guarantee you'll be able to write your program.