I get errors when I try to run the code and I don't really thing the main() is correct. At this point I don't think I'll complete the assignment. It is due in one hour. I have struggled way to long before asking for help.
Do you see what you did with the variable "count"? To fix that particular error, all you need to do is the same thing for those two variables: set them to something upon initialization.
Good luck! And... you're not allowed to turn your work in late for partial credit? Better late than not at all...