Sure!! I'll get right on it.
* * *
Meanwhile in the real world... this is not a homework service and no one here is going to spoon-feed you the code.
If you're serious about this completing your assignment, you will start tackling the problem yourself, and then come back with precise and justified questions regarding your problems and where you're stuck.
Once you do this, or if you can think of proper questions come back and we will be happy to try and help you.
Oh and seriously - multiple posts within the forum is NOT allowed, so a mod should delete this thread soon.
Stick to your original post here:
Problems with my HW
Multiple posts are a serious pain, as It wastes everybody's time and it isn't very constructive.