Hi,
I'm responding just to help you formulate your need for help.
If you really need help, you should explain what your are trying to achieve, expose the difficulties you've faced and then ask your question! you need more than just to say "help in programming code for switch".