Learning Your First Programming Language

A computer program is set of instructions for the computer to execute specific tasks. Common programming languages are C,C++, Visual Basic and Java. Once you master any one programming language, you can learn other languages easliy. But how to learn your first programming language?

The purpose of a computer program is to instruct the computer to excecute certain jobs depending on the inputs provided by the user. This means that your program should accept the user inputs. The inputs can be from keyboard (text, numbers or control keys) or mouse clicks. You have to determeine what type of inputs are expected in your program and make provision to store them. This is done with help of variables which must be given some meaningful names and when users enter data you must store them in these variables.

The values stored in the variables need to be manipulted using logical requirements of the given program. For example the statement “IF a condition is true, THEN execute this job, ELSE execute other job!”, is a logical statement. When you are writing such statements you must follow the syntax rules so that computer will execute the logic correctly.

Another common function to familiarise yourself is called “LOOP”. Loops are used to make repeated executions of specific tasks. These are quite commonly used in programming for manipulation of data and search operations. Common loops are called FOR loop and WHILE loop. The syntax for loops must be followed correcttly.

All programs use FUNCTIONS; these are used for executing same sequence operations on different variables without the need to write the sequence of operation repeatedly. For example if you have written a function that calculates interest charged between two dates, you can use the function any numer of time just by calling the function and assigning these two dates.

You can begin by building very simple programs and go on increasing the complexity by adding more features. Learning your first program is easy and exciting as it makes you to enter the fascinating world of computer programming!

This entry was posted on Thursday, February 16th, 2012 at 9:37 am and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply