As a university "Intro to Computer Science" instructor, I believe that youjust did someone's homework for them. I can only hope that they learnenought to be able to create this code correctly on the midterm in a coupleof weeks.