I work for agencies and independent programmers who offer consulting services. Before becoming a lawyer I did freelance web development. This is an overview to the steps required to start a business doing contract programming.
Step 0) Learn how to program and develop your skills to a point at which people would like to pay you to program for them.