Question 1 Sample for my programming exam

Yesterday is the day where I took my first semester Programming examination. I'm so frustrated because I didn't manage to complete a question which I INDEED know how to do if given more time and a more relaxing environment.

Anyways, I just finished the code for question 1 which I only managed to do erm, say 3/4 quarter?

This is a code prepared and completed by me, you may have different approaches though.

Java source code Pass: dsync