in reply to SEEKING HELP
Thank you sundial and everyone.
On the topic of whether this is homework...it is not. It is a small part of an ongoing project i am doing in my lab. Each day i try to add to my program and this is the part i am currently stuck on.