| HOME | INTRODUCTION | INSTRUCTION | SOURCE CODE | PROGRAM DEMO |
|
-
|
INTRODUCTION TO COMPUTER SCIENCE |
|
-
|
INTRODUCTION TO PROGRAMMING LANGUAGE |
|
-
|
INTRODUCTION TO C++ LANGUAGE |
|
-
|
INTRODUCTION TO ALGORITHMS |
|
-
|
INTRODUCTION TO OOP LANGUAGE |
INTRODUCTION TO PROGRAMMING LANGUAGE
Programming language is a computer language which can control a computer and command a computer to work for solving a problem. There are two types of programming lanuage. One is low leve language, and another is high level language. The source code in high level language is similar to Englsh language, so it is easy to understand.
High Level Language and Low level language
At the lowest level, computers respond to electric signals at an extremely fast rate. Computers react to whether electricity is flowing or not. The computer merely responds to switches that are in one of the two states involves what is termed the binary number system, or the bast 2 system. This system is based on counting using only the digits 0 and 1. Instruct computers at the low level of zero and one, languages have been developed that allow idea to express at a higher level. This is help to understand easily. These high level languages can be can be translated into particular sequences of zero and one. Translating computer program translate a high level language to low level language for a particular computer. And helped to make more useful in computer. So it mean that the high level language can understand easily because it similar to English language, Low level language, it is hard to understand because is not use English language much, it is a binary number system that must translate before we understand. The C++ language, this is a root of C language. The language C is a high level language that allow low level concepts to be expressed.
A concrete example
The low-level language of zero and one that computers understand is called a machine language. Different computers have different machine language. Example C++, this program is needed to translate the high level language into machine language. A compiler is a program that does this translation. And the code is translated to into assembly language. Assembly language is referring to as low level language. It was develop to make programming easier. In assembly language, a programmer use symbolic names to specify various machine languages.
Creating and Developing programs
From problem to algorithms, it starts at the problem. You have to develop a solution to solve problem, that solution is a general idea, useful in many situations. It is usually worth it. To write a program for solve a general problem, we must develop an algorithms.
From algorithms to program, we translate the algorithms to a computer language. Translating the algorithms into code require for programming language must know about programming language.
From high-level language into low-level language, this is for people that use high-level language. It need to translate from high-level language into low-level language, it called “ Assembly language”. And after that, computers translate Assembly language to machine language, the language zero and one that computer understand, it mean computer directly execute. The process of translation must use a computer program called compiler and processing called compiling. A compiler translates ode written in high level language into machine language.
Executing machine language, at the lowest level, the zeros and ones of machine language code cause switches to be turned on and off in computer. These switches can be switches on off rapidly. The execution of program is separate and not same the compilation of the program. Executing a machine language program results in the computer performing the tasks represent by the compiled machine code.