merlyn advocates full disclosure. Sounds good to me. Here are some more of my less-than-humble thoughts on the matter.
If you suspect something is a homework question, post requesting a clarification. We've had some cases
recently where an apparent HW assignment was not actually one. It's very easy to get trigger-happy on the sarcasm
and the flamethrowers.
If a post is confirmed to be HW, be gentle. "You can catch more flies with honey". Posting an answer WHY you will not answer
a homework is more useful than posting a rant against the poster.
If a post is confirmed HW, but the poster has obviously devoted some
real effort to it, be even more gentle. I have respect for the person who says "We were assigned (this), and I tried (this), but it gives me (this). Can
anyone explain why?". I have no respect for "How do I do (artificial sounding this)?"