Tuesday, January 5, 2016

what is computer program?

As you can read in our long article on computer history, the first computers were gigantic calculating machines and all they ever really did was "crunch numbers": solve lengthy, difficult, or tedious mathematical problems. Today, computers work on a much wider variety of problems but they are all still, essentially, calculations. Everything a computer does, from helping you to edit a photograph you've taken with a digital camera to displaying a web page, involves manipulating numbers in one way or another.

Suppose you're looking at a digital photo you just taken in a paint or photo-editing program and you decide you want a mirror image of it in other words, flip it from left to right. You probably know that the photo is made up of millions of individual pixels colored squares arranged in a grid pattern. The computer stores each pixel as a number, so taking a digital photo is really like an instant, orderly exercise in painting by numbers! To flip a digital photo, the computer simply reverses the sequence of numbers so they run from right to left instead of left to right. Or suppose you want to make the photograph brighter. All you have to do is slide the little "brightness" icon. The computer then works through all the pixels, increasing the brightness value for each one by, say, 10 percent to make the entire image brighter. So, once again, the problem boils down to numbers and calculations.


What makes a computer different from a calculator is that it can work all by itself. You just give it your instructions (called a program) and off it goes, performing a long and complex series of operations all by itself. Back in the 1970s and 1980s, if you wanted a home computer to do almost anything at all, you had to write your own little program to do it. For example, before you could write a letter on a computer, you had to write a program that would read the letters you typed on the keyboard, store them in the memory, and display them on the screen. Writing the program usually took more time than doing whatever it was that you had originally wanted to do (writing the letter). Pretty soon, people started selling programs like word processors to save you the need to write programs yourself.

Today, most computer users buy, download, or share programs like Microsoft Word and Excel. Hardly anyone writes programs any more.

Related Posts:

  • Hardware Components Let's start with the computer case. This is the metal enclosure that contains many of the other hardware components. It comes in various shapes and s… Read More
  • Function of Programming Functions Functions "Encapsulate" a task (they combine many instructions into a single line of code). Most programming languages provide many buil… Read More
  • Disadvantages of internet 1) There is a lot of wrong information on the internet. Anyone can post anything, and much of it is garbage.  2) There are predators that hang … Read More
  • Internet Internet    Definition A means of connecting a computer to any other computer anywhere in the world via dedicated routers and server… Read More
  • Advantages of internet 1) Information on almost every subject imaginable.  2) Powerful search engines  3) Ability to do research from your home versus research … Read More

0 comments:

Post a Comment