oh, shit... i just noticed that. i was in such a hurry, all i could do was to get rid of brackets, parentheses, and the redundant type delcarations, so the damn thing would compile and run.
as it was, he only had 5 minutes left to submit, so part-credit is better than no-credit. we didn't have time to debug the rest
feel free to debug the logic. hes gonna have to know how to get through this one way or another before he can pass the class, i reckon....