Skip to main content

Computer Languages - introduction

 


This chapter continues with the discussion of development of computer programs. Once a programmer has finished planning of a computer program, he/she is now ready to write the steps of the corresponding algorithm in a programming language. 

Computer language or programming language is a language acceptable to a computer system, and the process of writing instructions in such a language is called programming or coding.  The goal of this post is to introduce some popular programming languages. 


Analogy with natural languages: 

Language is a mans of communication. We use a natural language such as English, to communicate our emotions and ideas to others. Similarly a programmer uses a computer language to instruct computer what he/she want to do. 

All natural languages (English, French, German, etc.) use a standard set of words and symbols for communication. Everyone uses that language understands these words and symbols. The set of words allowed in a language is called its vocabulary. For example, the word used in English from the vocabulary of  English language. Each word has a definite meaning. Similarly, every computer language has a vocabulary of its own. Each word in the vocabulary has a definite unambiguous meaning. The main difference between natural language and the computer language is that natural languages have a large vocabulary but most languages use a very limited or restricted vocabulary. This is because of programming language by its very nature and purpose does not need to say too much. Every problem to be solved by a computer has to be broken down into discrete (simple and separate), logical steps basically compiling of four fundamental operations - 

1. Input and Output operations.

2. Arithmetic operations.

3. Operations for data movement within CPU and Memory.

4. Logical or comparison operations.

Every natural language has a systematic method of using the words and symbols in that language identified by the grammar rules of language. Similarly, we need to use the words and symbols of a computer language as per the set rules, known as a syntax rules, of the language. In case of a natural language, one can use poor and incorrect vocabulary and grammar and still communicate his/her thoughts. However, in case of programming language, unless a programmer adheres exactly to the syntax rules of the language, even down to the punctuation marks, a computer will not understand his/her instruction. 

Over the years, programming languages have progressed from machine oriented languages ( that use strings of  binary 1s and 0s) to problem oriented languages ( that use common mathematical and/or English terms). However, we can classify all computer languages broadly into following three categories:

1. Machine language.

2. Assembly language.

3. High-level language.

I have made separate detailed post of these three languages, you can see from there.

Comments

Popular posts from this blog

Word-processing Package

The term word processing describes use of hardware and software to create, edit, view, format, store, retrieve and print documents (written materials such as letters, reports, books, etc.). A word processing package enables us to do all these on computer system. Commonly supported features: Today's word processing packages normally support the features described below: 1. Entering Text : This feature allows a user to enter text with computer's keyboard. Every character typed on keyboard is displayed immediately on computer's screen. Word wrap feature of word processing software determines when current line is full, and it automatically moves the text that follows to the next line. Hence, only time the user has to press Enter key is at the end of the paragraph. This feature is very useful to those having fast typing speed because they can enter text at their speed, without the need to keep track of where to end a line. 2. Editing Text : This feature allows a user to make cha

Central Processing Unit

  Central Processing Unit (CPU) A Central Processing Unit is also called a processor, central processor, or microprocessor. It carries out all the important functions of a computer. It receives instructions from both the hardware and active software and produces output accordingly. It stores all important programs like operating systems and application software. CPU also helps Input and output devices to communicate with each other. Owing to these features of CPU, it is often referred to as the brain of the computer. Central Processing Unit CPU is installed or inserted into a CPU socket located on the motherboard. Furthermore, it is provided with a heat sink to absorb and dissipate heat to keep the CPU cool and functioning smoothly. Generally, a CPU has three components: 1. Control Unit 2. Arithmetic Logic Unit 3. Memory or Storage Unit 1. Control Unit : It is the circuitry in the control unit, which makes use of electrical signals to instruct the computer system for executing already

Introduction to Computer

  The word "computer" comes from the word "compute", which means "to calculate". Hence, people usually consider a computer to be a calculating device that can perform arithmetic operations at high speed.  The straightforward meaning of a computer is a machine that can calculate. However, modern computers are not just a calculating device anymore. They can perform a variety of tasks. In simple terms, a computer is a programmable electronic machine used to store, retrieve, and process data. According to the definition, " A computer is a programmable electronic device that takes data, perform instructed arithmetic and logical operations, and gives the output." Whatever is given to the computer as input is called 'data', while the output received after processing is called 'information'. Although the original objective of inventing a computer was to create a fast calculating device, we name define a computer as a device that operates

Computer system architecture

  Computer Architecture  A computer system is basically a machine that simplifies complicated tasks. It should maximize performance and reduce costs as well as power consumption.The different components in the Computer System Architecture are Input Unit, Output Unit, Storage Unit, Arithmetic Logic Unit, Control Unit etc. A diagram that shows the flow of data between these units is as follows − The input data travels from input unit to ALU. Similarly, the computed data travels from ALU to output unit. The data constantly moves from storage unit to ALU and back again. This is because stored data is computed on before being stored again. The control unit controls all the other units as well as their data. Details about all the computer units are − Input Unit The input unit provides data to the computer system from the outside. So, basically it links the external environment with the computer. It takes data from the input devices, converts it into machine language and then loads it into t