3 COMPUTER PROGRAMMING LANGUAGES
3 COMPUTER PROGRAMMING LANGUAGES
LANGUAGES
Date : 2/2/2024
Topic : Programming Languages
Faculty : Loila Sanoria Empimo
EVSU-OCC
E mail: [email protected]
[email protected]
What is computer
programming?
⚫ Source-code editor
⚫ Source-code management
⚫ Compiler
⚫ Interactive debugger
Visual Basic IDE
Visual C++ IDE
Computer Programming Concepts
ALGORITHM
⚫ Used extensively to arrive at a solution for a
problem
SOURCE
⚫ The actual text used to write the instructions for
a computer program
COMPILER
⚫ Translates source code into data that the
computer can understand
DATA
⚫The classification of pieces of information in a
program
VARIABLE
⚫Can store different types of data including numeric
values, single characters, and text strings
⚫The value of variable can change all throughout a
program
CONSTANT
⚫The value of a constant does not change
CONDITIONAL
⚫A set of code that will execute only if a certain
condition is true
⚫Used to test expressions and perform certain
operations accordingly
ARRAY
⚫A special type of variable used in many
programming and web languages that contains a
list of related values
LOOP
⚫A segment of code that executes repeatedly based
on a certain condition
FUNCTION
⚫A function can take parameters which will effect its
output as well as return values
⚫Prevent unnecessary redundancy because you use
them as much as needed instead of retyping some
code over and over
CLASS
⚫A template for a real world object to used in a
program
⚫Used in object-oriented programming
Four types of programming languages
⚫ Functional
◦ Lisp, ML, Scheme
◦ Good for evaluating expressions.
⚫ Declarative
◦ Prolog
◦ Good for making logical inferences.
⚫ Imperative
◦ C, Pascal, Fortran, COBOL
◦ Good at performing calculations, implementing algorithms.
⚫ Object-oriented
◦ C++, Java, C#, Visual Basic
◦ Much like imperative languages, but have support for
“communication” among objects.
The different types of languages
• Web languages
• Software languages
• The different generations of languages
• Procedure oriented programming
• Object oriented programming
Web languages
⚫Machine language
⚫Represent the very early, primitive computer
languages that consisted of 1’s and 0’s – the actual
language that the computer understand
Second generation languages (2GL)
⚫Assembly language
⚫Represent a step up from the first generation
languages
⚫Code written in an assembly language is converted
into machine language (1GL)
Third generation languages (3GL)
⚫Natural language
⚫Used for neural networks
⚫A neural network is a form of artificial intelligence
that attempts to imitate how the human mind
works
Procedure-oriented
Programming
• A type of programming where a structured
method of creating programs is used
• A problem is broken up into parts and each
part is then broken up into further parts.
• All these parts are known as procedures
• They are separate but work together when
needed
• A main program centrally controls them all
Object-oriented Programming