We won't code a whole scenario for you. Start and try it alone and if you need help with something specifically, then ask for help for this step. Even if you would get the whole code, you wouldn't understand it and couldn't learn from it.
Dude, i tried yesterday....but the fishes are not moving freely........somewhat it hangs up in the middle and stop working.........so what do i need to do.