Computer program: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Eric M Gearhart
(Example of complex program)
imported>Thomas H. Larsen
(Re-wrote first paragraph.)
Line 1: Line 1:
{{subpages}}
{{subpages}}


In computing, '''computer programs''' at a basic level are bundles of instructions to be executed on a computer. Programs generally consist of code that is to be executed, process input, and as a result of processing return output to the user.
A '''computer program''' is, at the most basic level, a set of instructions to be executed by a computer. Often, a computer program will go through multiple stages of processing until it is in a form that the computer can handle correctly. Computer programs are often likened to [[recipe]]s, since they are built up of instructions (usually called "statements" or "commands"), accept input, and result in output being produced.


Computer programs can be as simple as a block of code that outputs "Hello world!" or complex enough to browse the [[Internet]] and display [[web page|web pages]]. One example of a rather complex program would be the [[Mozilla Firefox]] web browser.
Computer programs can be as simple as a block of code that outputs "Hello world!" or complex enough to browse the [[Internet]] and display [[web page|web pages]]. One example of a rather complex program would be the [[Mozilla Firefox]] web browser.

Revision as of 23:51, 16 December 2009

This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.

A computer program is, at the most basic level, a set of instructions to be executed by a computer. Often, a computer program will go through multiple stages of processing until it is in a form that the computer can handle correctly. Computer programs are often likened to recipes, since they are built up of instructions (usually called "statements" or "commands"), accept input, and result in output being produced.

Computer programs can be as simple as a block of code that outputs "Hello world!" or complex enough to browse the Internet and display web pages. One example of a rather complex program would be the Mozilla Firefox web browser.

Generally programs are written to run on top of an operating system, which in turn manages the hardware resources of a computer.

There are a myriad of various ways to write a computer program. On a basic level one could write machine code designed to run directly on top of hardware. This is a tedious task, and several other methods to create programs have evolved over the history of computing

In modern times typically if one chooses to write a program, a programming language is chosen (such as C, Java or Python) and then the syntax of that language is learned. Over time a programmer learns various skills in order to "develop code." Some programmers consider themselves as much artists as engineers.