Sorry. I am a newbie but rather old to do homework assignment: I am 65 years old and work on language analysis and am learning Perl since it helps me do a lot of string manipulation which in C would be an expensive proposition.
No homework assignment here, I am afraid. Sentence splitting is a major problem in NLP and creates issues which you can see from the replies posted.