You are on page 1of 6

CPE 002A

NOTES
LESSON 1

Computer Fundamentals & Programming Each programming language has a different set
of syntax rules.
LESSON 1
 Why are there so many programming
Overview of Programming language:
Language?
 What is Programming Language? First programming languages
 Why are there so many programming were developed in the 1950s.
Language? Since then, thousands of
 What are the types of Programming languages have been
Language? developed.
 Does the world need new Languages? Different programming language

Definition: are designed for different types


of program.
A Programming Language is a set of rules that
provides a way of telling a computer what Levels of Programming Languages

operations to perform

A Programming Language is a set of rules for


communicating an algorithm. It provides a
linguistic framework for describing computations.

A Programming Language is a notational system


for describing computation in a machine-readable
and human-readable form. A Programming
Language is a tool for developing executable
models for a class of problem domains.

English is a natural language it has words and Types of programmed

symbols and grammatical rules  Imperative Programming (C)

A Programming Language also has words and  Object-Oriented Programming (C++)

symbols and rules of grammar  Logic/Declarative Programming (Prolog)


 Functional/ Applicative Programming
The grammatical rules are called
(Lisp)

2|Page
LESSON 1

▪ Operands – that identify


the data to be
Top programming Languages
processed.
C – 20%  Is Machine dependent as it is only
Java – 19% language the computer can
SQL – 11% understand.
C++ - 10%  Very efficient but very difficult to
Facebook Graph API – 8* write.
Excel – 6 % Second Generation Languages
CBS – 6%  Assembly Language;
PHP – 5% ▪ Symbolic operation

JavaScript – 5% codes replaced binary

Ssafaf – 5% operation codes.


▪ Assembly language
Google Analytics – 4%
programs needed to be
Difference between high and low level –
“Assembled” for
Level Programming Language
execution by the
 Low level languages work more closely computer. Each
with hardware and do not require a assembly language
complier to be executed. instruction is translated
 High level languages are more into one machine
understandable for the programmer in language instruction.
terms of the word in the code. ▪ Very efficient code and
What are the types of programming easier to write.
language? Third Generation Languages
 Closer to English but included
First Generation Languages
simple mathematical Notation.
 Machine Language;
 Programs written in Source
▪ Operation code – such
Code which must be translated
as addition or
into machine language program
subtraction.
called object code.

3|Page
LESSON 1

 The translation of source code to Beyond Fifth Gen.


Object Code is accomplished by  Though no clear definition at
a machine language system present, natural language
program called a Complier. programs generally can be
 Alternative to compilation is interpreted and executed by the
interpretation which is computer with no other action by
accomplished by a system the user than stating their
program called an Interpreter. question.
 Common Third Gen. Languages  Limited Capabilities at Present.
▪ Fortran, Cobol, C and
Programming Languages
C++, Visual Basic.
Fourth Generation Languages  Two broad groups Traditional

 A high-level language (4GL) that programming languages

requires fewer instructions to o Sequences of instructions

accomplish a task than a Third o First, second and some third-

Gen. Language. generation languages.

 Used with databases  Object-oriented languages

▪ Query Languages o Objects are created rather than

▪ Report Generators sequences of instructions

▪ Forms Designers o Some third generation, and

▪ Application Generators fourth and fifth generation

Fifth Generation Languages languages

 Declarative Languages
 Functional Lisp, Scheme, & SML
▪ Also called applicative
▪ Everything is a function
▪ Logic: Prolog
▪ Based on Mathematical
Logic
▪ Rule or Constraint
Based.

4|Page
LESSON 1

Fortran Formula Translation  C++


➢ It is C language with additional
 Developed at IBM in the mid-1950s;
features
designed for scientific and mathematical
➢ Widely used for developing
applications by scientists and engineers.
system and application software
 COBOL
➢ Graphical user interfaces can be
➢ Common Business Oriented
developed easily with visual
Language
programming tools
➢ Developed in 1959
 JAVA
➢ Designed to be common to
➢ An object-oriented language
many different computers
similar to C++ that eliminates
➢ Typically used for business
lots of C++’s problematic
applications
features
 BASIC
➢ Allows a web page developer to
➢ Beginner’s All-purpose Symbolic
create programs for applications,
Instruction Code
called applets that can be used
➢ Developed at Dartmouth College
through a browser
in mid 1960s
➢ Objective: JAVA developers is
➢ Developed as a simple language
that it be machine, platform and
for students to write programs
operating system independent.
which they could interact through
 Scripting Languages:
terminals
▪ JavaScript and VBScript
 C
▪ Php and ASP
➢ Developed by Bell Laboratories
▪ Perl and Phyton
in the early 1970s
 Command Languages:
➢ Provides control and efficiency
▪ Sh, csh, bach
of assembly language while
 Text Processing Languages:
having third generation language
▪ LaTex, PostScript
features
➢ Often used for system programs
➢ UNIX is written in C

5|Page
LESSON 1

 HTML
▪ HyperText Markup language
▪ Used on the Internet and the
World Wide Web (WWW)
▪ Web page developer puts bried
codes called tags in the page to
indicate how the page should be
formatted
 XML
▪ Extensible Markup Language
▪ A language for defining other
languages

Conclusion of Programming Languages:

Programming languages are languages


When it comes to mechanics of the task,
learning to speak and use a
programming language is in many ways
like learning to speak a human language
In both kind of language, you have to
learn new vocabulary, syntax and
semantics (new words, sentence
structure and meaning)
Both kind of language require
considerable practice to make perfect

Conclusion:

 Everyone need a language to tell an


information which is hidden, n such a
way programming is a language which is
used for knowing the hidden information
of computer related programming.

6|Page

You might also like