Based on the 2 posts you have attached, the problems are:
1. Too direct (You don't show effort of solving the problem from "A" but you want it "Z" directly)
2. Too broad (asking multiple questions in one even though it is related)
3. Lengthy codes
4. Frequent update (You mentioned)
Suggestions:
- Learn on how to ask a question by looking at those highly voted posts.
You will get the similarities which are short code, clear problem statement and clear result of research. Instead of the whole program / class, you just need to show the part of the code, which you are not sure about/the cause of problem.
- Splitting questions into multiple posts
If the questions are related, ask the most fundamental problem which allow you to proceed to next stage of problem. After getting answer for the first problem, you can now ask your second question. What if you don't get a desired answer? The only way is to start a bounty to attract people, don't be stingy if the problem is important, make the period long enough to get enough attention. Avoid meaningless edit.
- Learn asking technique, avoid short and direct question.
This is the most important one as this usually does not show one person's effort on solving OWN PROBLEM!
Giving the scenario like this:
You asking short question how to get "C" but you never tell what's before "C" and the process of you to achieve or encountered it. The community is hoping you do something like "A"(what you have done) -> "B" (problem encountered) -> "C" (you want to achieve C but failed because of B).