Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Introduction To Programming Languages: Grade 9 - Quarter 1 - Lesson 1

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

GRADE 9 – QUARTER 1 – LESSON 1

INTRODUCTION TO
PROGRAMMING LANGUAGES

John Lester B. Magdaraog, LPT


Teacher
WHAT IS PROGRAMMING Grade 9 - Quarter 1 - Lesson 1

LANGUANGE?
This is a set of rules that provides a way of telling
a computer what operations to perform.

Introduction To Programming
Languages LEVELS OF
PROGRAMMING
a. High-level Program LANGUANGE?
b. Low-level Program
c. Executable Machine Code
Introduction To Programming
Languages LEVELS OF
PROGRAMMING
HIGH-LEVEL LOW-LEVEL
LANGUANGE?
PROGRAM
class Triangle { PROGRAM
LOAD r1,b
... LOAD r2,h
float surface() return MUL r1,r2
b*h/2; DIV r1,#2
} RET

EXECUTABLE
MACHINE CODE
0001001001000101
0010010011101100
INTRODUCTION TO PROGRAMMING LANGUAGES

TYPES OF PROGRAMMING LANGUAGES


Introduction To Programming
Languages TYPES OF PROGRAMMING
LANGUAGES
FIRST GENERATION
Machine Language
LANGUAGES
• Operation code – such as addition or subtraction.
• Operands – that identify the data to be processed.
• Machine language is machine dependent as it is the
only language the computer can understand.
• Very efficient code but very difficult to write.
Introduction To Programming
Languages TYPES OF PROGRAMMING
LANGUAGES
SECOND GENERATION
Assembly Language
LANGUAGES
• Symbolic operation codes replaced
binary operation codes.
• Assembly language programs needed to
be “assembled” for execution by the
computer. Each assembly language
instruction is translated into one machine
language instruction.
• Very efficient code and easier to write.
Introduction To Programming
Languages TYPES OF PROGRAMMING
LANGUAGES
THIRD GENERATION
• Closer to English but included simple mathematical notation.
LANGUAGES
• Programs written in source code which must be translated into
machine language programs called object code.

FOURTH GENERATION
• A high level language (4GL) that requires fewer instructions to
LANGUAGES
accomplish a task than a third generation language.
• Used with databases
Introduction To Programming
Languages TYPES OF PROGRAMMING
LANGUAGES
FIFTH GENERATION
• Declarative languages
LANGUAGES
• Functional(?): Lisp, Scheme, SML
• Also called applicative
• Everything is a function
• Logic: Prolog
• Based on mathematical
• logic
• Rule- or Constraint-based
INTRODUCTION TO PROGRAMMING LANGUAGES

TRADITIONAL, OBJECT-ORIENTED AND


Introduction To Programming
Languages TYPES OF PROGRAMMING
LANGUAGES
TRADITIONAL PROGRAMMING
Sequences
LANGUAGES of instructions. First, second and some third
generation languages

OBJECT-ORIENTED LANGUAGES
Objects are created rather than sequences of instructions.
Some third generation, and fourth and fifth generation
languages
Introduction To Programming
Languages TRADITIONAL
PROGRAMMING
FORTRAN LANGUAGES
• FORmula TRANslation.
• Developed at IBM in the mid-1950s.
• Designed for scientific and mathematical applications by scientists
and engineers.
C
• Developed by Bell Laboratories in the early 1970s.
• Provides control and efficiency of assembly language while having
third generation language features.
• Often used for system programs.
• UNIX is written in C.
Introduction To Programming
Languages OBJECT-ORIENTED
LANGUAGES
SIMULA
• First object-oriented language
• Developed by Ole Johan Dahl in the 1960s.

SMALLTALK
• First purely object-oriented language.
• Developed by Xerox in mid-1970s.
• Still in use on some computers.
Introduction To Programming
Languages OBJECT-ORIENTED
LANGUAGES
C++
• It is C language with additional features.
• Widely used for developing system and application software.
• Graphical user interfaces can be developed easily with visual
programming tools.
Introduction To Programming
Languages OBJECT-ORIENTED
LANGUAGES
JAVA
• An object-oriented language similar to C++ that eliminates lots of
C++’s problematic features
• Allows a web page developer to create programs for applications,
called applets that can be used through a browser.
• Objective of JAVA developers is that it be machine, platform and
operating system independent.
Introduction To Programming
Languages SPECIAL PROGRAMMING
LANGUAGES
HTML
• Developed by Bell Laboratories in the early 1970s.
• Provides control and efficiency of assembly language while having
third generation language features.
• Often used for system programs.
• UNIX is written in C.HyperText Markup Language.
• Used on the Internet and the World Wide Web (WWW).
• Web page developer puts brief codes called tags in the page to
indicate how the page should be formatted.
Introduction To Programming
Languages SPECIAL PROGRAMMING
LANGUAGES
XML
• Extensible Markup Language.
• A language for defining other languages.
ASSIGNMENT
Research the following terms. Write your search results in your
notebook.
• Algorithm
• Flowchart
• Pseudo code
GRADE 9 – QUARTER 1 – LESSON 1

INTRODUCTION TO
PROGRAMMING LANGUAGES

John Lester B. Magdaraog, LPT


Teacher

You might also like