1. Outline exactly what you want your computer to do. You cannot make assumptions, and neither can the computer. If you want to write a program that will create a timetable, you must know and clearly outline every single rule in the time table and every possibility of what can happen in the time table.
Select a programming language. There are thousands of computer programming languages that are written to do different tasks. Some are easier for people to understand and some are more difficult, filled with symbols and cryptic instructions. A very common programming language used by people just learning how to write programs is Visual Basic, made by Microsoft.
Obtain and install your programming language. As part of the installation, you will load a compiler or interpreter onto your computer. This will enable you to convert the instructions you write into ones and zeros that the computer will understand.
Learn the syntax of the programming language that you have selected. In some cases, as with Visual Basic.NET, you can do most of the programming simply by clicking on various buttons and symbols. In other cases, more complex languages will require you to type instructions in basic text that will later be converted into something that the computer can understand. These basic instructions that you write are called source code.
Compile the source code that you have written. This is done with the compiler or interpreter that you have installed. This process often generates errors that you will have to go back and fix in your source code before the code can be compiled into something that the computer will understand.
Once you are successful with the compiling process, there will be a program file that can be understood by the computer. Run, or execute, your program to see the results.