I'm sorry, but we don't do homework assignments for you. Please show us what you have tried so far. First of all, do you know how to create a window? Do you know how to capture mouse events? These are the two main things you will need to do in order to complete this project. If you encounter problems, please come back with specific questions. Please
look here for suggestions on how to ask a question in order to get the kind of answer you want.
Layne