I'm sure someone could if you would actually describe what the problem is (not the assignment), but no one is going to do it for you.
Okay? And your code? And the current problem with that code? Or what, exactly, do you need help with (i.e. do not understand) about that?