Welcome to DaniWeb son, but I'm afraid we don't do your homework for you. Our rules state: provide evidence of having done some work yourself if posting questions from school or work assignments. So, if you can tell us exactly what you've done so far and where you are stuck, show us your code (assuming you've got that far by the looks of it) then maybe someone will be able to help you. Although, to be fair, if your final exams are in a week and you don't even know what an array is then maybe you are beyond help. Do you know what a troll is, perhaps?