Maths program. Very cheeky help request...

Hi,

I desperately need some help! I'm currently a mature student studying computing at night school. The module that we've just finished was based primarily on programming in C, I sat the test at the end of the term unprepared and managed to somehow wangle a distinction! However, due to getting totally stumped and being swamped at the time as well, I did not complete the assignment and as such I will fail the module. I've been granted a week (until Monday 15th) to get something in.

What I'm looking for is someone to sacrifice their ethics in return for my unending thanks! The program is relatively simple: It's a basic maths testing program. It should have a menu system asking whether one wants to answer addition, subtraction or multiplication questions (and possibly division). It should then ask a series of ten questions on the chosen subject using randomly generated numbers, and respond with a selection of positive and negative phrases (i.e. well done! or you're crap!) depending on how you answer. If you are incorrect, you should have two more chances to get it right. The program should keep a tally of the scores and when the ten questions have been answered it needs to display the number of questions passed, possibly as a percentage.

The earliest I can get started on this will be Friday. What I am hoping (and I appreciate it's reaching a bit! :) for is either someone who is so good they can knock this up in a few minutes for me, OR someone who has done something similar to this already and doesn't mind me "borrowing" vast chunks of it, or failing that anything that could save my arse at all...!

Code

Just in case any one is interested, this is the code that I came up with in the end. There was a lot more I could have done, but the tutor has told me he won't mark me any higher than a pass because it's late :( Anyway, it's done and dusted now...