-->

How to Controlling Your Computer with a Programming Language

In a previous article, we Automating some tasks Introduced With MS-DOS batch files. In this article, we're going to introduce programming and describe how it can be used to check the way your computer works. Normally, computer novices are not interested in controlling the computer. Typically New computer users are interested in learning more about how the thing works. However They May be surprised to learn That Increases computer programming knowledge as a whole and it can help to diminish the fear Associated With using a new computer.

Programming a computer is creating a sequence of instructions That enable the computer to do something. The People Who program computers (called programmers) use a programming language to Communicate with a computer. You Might Have heard of some of These languages in the past: such as Visual Basic, C ++, or Fortran. There are Hundreds of other programming language and neither one is better than the other. Most of them are capable of performing the same tasks and Achieving the same goals. A programmer chooses one language by a mere preference.

Each of These languages Differ By the Way They Communicate with a computer however, and the commands That They follow are very specific. Not a single command of one language can be interchanged With the commands or language of another. But all of them can be used to control computer.

Now it would be impossible to teach you how to program any language in a single article. But we can still introduce you to some of programming's Most basic concepts - starting with the commands we Talked About earlier. Commands are the instructions That Follows a computer to perform an action. To make them work inside of a program, programmers assign commands to objects like buttons for example.

The commands in a program are pretty useless UNLESS They have some data to act on so programmers Either give the programs some data to work with (list of names or numbers for example) or They make the program generate it's own data. Sometimes, the data comes from an outside source like the Internet or the computer That the program runs on. The data Receives That a program is called input and data Generates That program is called the output.

Other times, the data is unknown. If the program Were working with a simple algebra equation like, "x + 5 = y," the variables "x" and "and" would be unknown pieces of data. Were Or if a program to calculate a date "x" days from now, the variable "x" would be an unknown piece of data Until We tell the program what "x" is. In programming, Sometimes it's required to Work With unknown pieces of data.

That's When conditions come in handy. Conditions allow a program to perform an action based on the outcome of a previous command. Using this type of instruction, We Could instruct a program to do one thing if the "x" in our Latter Variable example turned out to be 7 days, and then a do different thing if the variable-turned out to be 3 days.

Commands, data, variables, and conditions help build programs and the single MOST Certainly there are many more components of any programming language. But When they're typed into a programming language and compiled to create a an executable file (a file ending With the .exe extension), They turn into a software application.

As we Mentioned Earlier, you can use a programming language to check your computer. By using single commands, you can program your computer to perform mathematical tasks, fill out web forms, compose an email message and send it off, or any number of other things. If you're interested, you May find Visual Basic is one of the Easiest MOST programming languages to learn. Visual Basic is an object-oriented programming language and it Automatically codes much of a program the minute a programmer drags a button onto a screen.




statcounter