Docsity

Introduction to Programming Languages: Fundamentals and Concepts, Study Guides, Projects, Research of Computer Programming

Toggle sidebar
bg1
PROGRAMMING FUNDAMENTALS
INTROUCTION TO PROGRAMMING LANGUAGE
The native language of a computer is binary “ones and zeros” and all instructions and data must be
provided to it in this form. Native binary code is called machine language. The earliest digital electronic
computers were programmed directly in binary, typically via punched cards, plug-boards, or front-panel
switches. Developing correct programs in machine language is tedious and complex, and practical only
for very small programs. In order to express operations more abstractly, assembly languages were
developed. The 1950s and 60s saw the introduction of high-level languages, such as FORTRAN and
Algol.
A programming language is a formal constructed language designed to communicate instructions to a
machine, particularly a computer. Programming languages can be used to create programs to control
the behavior of a machine.
In 1972, DENNIS RITCHIE invented the C language. It is easy, reliable and simple language. C
language contains all the basic elements. If we want to learn about the C++ , Java and C# then firstly we
have at know the C language.
INSTALLATION OF TURBO C++
•First of all, get the setup of Turbo C++ .
•Run the setup , a window will appear.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Introduction to Programming Languages: Fundamentals and Concepts and more Study Guides, Projects, Research Computer Programming in PDF only on Docsity!

PROGRAMMING FUNDAMENTALS

INTROUCTION TO PROGRAMMING LANGUAGE

The native language of a computer is binary “ones and zeros” and all instructions and data must be provided to it in this form. Native binary code is called machine language. The earliest digital electronic computers were programmed directly in binary, typically via punched cards, plug-boards, or front-panel switches. Developing correct programs in machine language is tedious and complex, and practical only for very small programs. In order to express operations more abstractly, assembly languages were developed. The 1950s and 60s saw the introduction of high-level languages, such as FORTRAN and Algol.

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine.

In 1972 , DENNIS RITCHIE invented the C language. It is easy, reliable and simple language. C language contains all the basic elements. If we want to learn about the C++ , Java and C# then firstly we have at know the C language.

INSTALLATION OF TURBO C++

  • First of all, get the setup of Turbo C++.
  • Run the setup , a window will appear.
  • After accepting the license agreement, click next.
  • A window will appears in which installation will be in progress.
  • (^) When it completes, click finish.

2. Understanding

High-level languages are near to human languages.

3. Execution

Programs in high-level languages are slow in execution.

4. Modification

Programs in high-level languages are easy to modify.

5. Facility at hardware level

High-level languages do not provide much facility at hardware level.

6. Knowledge of hardware Deep

Knowledge of hardware is not required to write programs.

7. Uses

These languages are normally used to write application programs.

Low-level languages

1. Learning

Low-level languages are difficult to learn.

2. Understanding

Low-level languages are far from human languages.

3. Execution

Programs in low-level languages are fast in execution.

4. Modification

Programs in low-level languages are difficult to modify.

5. Facility at hardware level

Low-level languages provide facility to write programs at hardware level.

6. Knowledge of hardware Deep

Deep knowledge of hardware is required to write programs.

7. Uses

These languages are normally used to write hardware programs.

INTERPRETER VS COMPILER

No Compiler Interpreter 1 Compiler Takes Entire program as input Interpreter Takes Single instruction as input. 2 Intermediate Object Code is Generated No Intermediate Object Code is Generated 3 Conditional Control Statements are Executes faster

Conditional Control Statements are Executes slower 4 Memory Requirement : More (Since Object Code is Generated)

Memory Requirement is Less

5 Program need not be compiled every time Every time higher level program is converted into lower level program 6 Errors are displayed after entire program is checked

Errors are displayed for every instruction interpreted (if any) 7 Example : C Compiler Example : BASIC

Program In C++:

Program to print the statement.

Output: