Solution 1

Trust me on this: "immediately help please"
Does not help your case, nor does posting the same code over and over again, with minor changes and not trying to work out what the problem is yourself.

As I said last time: Use the debugger. Work out what should happen and follow the code through to find out what does happen. Then look to see if you can spot why. It will probably take you less time than posting repeatedly, and may mean that you get to hand your homework in on time.

If you try to debug it, and come up with a concrete question instead of "HELP! It doesn't work!" they we will try to help you - but you have to try to help yourself first!