FAQ for Stack Exchange sites
FAQ for Stack Overflow
Some ready comments:
Homework related:
Please see: [Why is “Can someone help me?” not an actual question?](https://meta.stackoverflow.com/q/284236)
["How do I ask and answer homework questions?"](https://meta.stackoverflow.com/q/334822)
["How to ask a good question when I'm not sure what I'm looking for?"](https://meta.stackoverflow.com/q/262527)
I'm voting to close this question as off-topic because: ["3. Questions asking for homework help must include a **summary of the work you've done so far to solve the problem**, and a **description of the difficulty you are having** solving it."](https://stackoverflow.com/help/on-topic). Current state of your question doesn't fulfill these requirements. Use [edit] option to improve it.
Also please read this [Open letter to students with homework problems](http://meta.programmers.stackexchange.com/q/6166)
Others:
[X/Y problem](https://meta.stackexchange.com/q/66377)
Don't post text/code as image/link ([more info](https://meta.stackoverflow.com/a/285557)). Use [edit] option to correct your post.
[Are answers that just contain links elsewhere really “good answers”?](https://meta.stackexchange.com/q/8231)
[Your answer is in another castle: when is an answer not an answer?](https://meta.stackexchange.com/q/225370)
Please [ask one question per post](https://meta.stackexchange.com/q/222735)
[Are “works for me” answers valid?](https://meta.stackexchange.com/q/118992)
[Are “Your code works fine for me” answers acceptable?](https://meta.stackoverflow.com/q/277923)