SlideShare a Scribd company logo
1 of 30
Download to read offline
INTRODUCTION TO
PROGRAMMING
Lesson 1 – Programming Logic and Design
MR. ROWELL L. MARQUINA
IT Instructor, PUP Biñan
WHAT IS A
PROGRAM?
WHAT IS A PROGRAM?
A program refers to a set
of commands that
provide instructions to a
computer on how to
perform a specific task.
IMAGE SOURCE: https://beginnersbook.com/wp-content/uploads/2019/07/Java_program_simple_interest.jpg
WHAT IS A PROGRAM?
A program can instruct the
computer to:
▪ display message on screen
▪ get input from users
▪ perform arithmetic operations
▪ compare values
▪ perform iterations
IMAGE SOURCE: https://beginnersbook.com/wp-content/uploads/2019/07/Java_program_simple_interest.jpg
WHAT IS A
PROGRAMMING
LANGUAGE?
WHAT IS A PROGRAMMING LANGUAGE?
A programming language is an
artificial language developed to
provide a communication link
between humans and computers.
IMAGE SOURCE: https://miro.medium.com/v2/resize:fit:820/1*v5NRqLcyXIVNaG5KLjKIQA.png
Like a formal language, a
programming language is defined
by its two components: syntax
(form) and semantics (meaning).
WHAT IS A PROGRAMMING LANGUAGE?
Syntax refers to the principle
that guides how a specific
instruction is written.
IMAGE SOURCE: https://cs.lmu.edu/~ray/images/ast.png
It details the rules on how
symbols, punctuations,
and words are used in a
programming language to
write a command.
WHAT IS A PROGRAMMING LANGUAGE?
Semantics refers to an
analytical system that conveys
or defines the meaning of a
written instruction in a
program.
IMAGE SOURCE: https://www.baeldung.com/wp-content/uploads/sites/4/2022/10/Lexic2.png
It is used to generate and
validate meanings of a
piece of code.
TYPES OF
PROGRAMMING
LANGUAGES
TYPES OF PROGRAMMING LANGUAGE
Programming Language
can be classified into two
generations:
▪ Low Level Language
▪ High Level Language
IMAGE SOURCE: https://miro.medium.com/v2/resize:fit:624/1*icGwCEFBJTjIPcslHeL1Eg.png
LOW LEVEL VS.
HIGH LEVEL
LOW LEVEL LANGUAGE
Low Level Language is a type
of programming language
that is machine dependent
and provides little to no
abstraction in the interface
between programmers and
the machine.
IMAGE SOURCE: https://www.deviantart.com/findingnull/art/Binary-GIF-871009093
HIGH-LEVEL LANGUAGE
A High-Level Language is a user-
friendly programming language that
allows programmers to write their
programs using natural language.
IMAGE SOURCE: https://beginnersbook.com/wp-content/uploads/2019/07/Java_program_simple_interest.jpg
Since High-Level Language is
independent of the computer
hardware architecture, the syntax is
created in a form that can be easily
read and understood by humans.
TYPES OF
LOW LEVEL LANGUAGE
MACHINE LANGUAGE
Machine Language is a type of
low-level programming
language where the
instructions are written using
binary code.
A binary code refers to a string
of 1s (high voltage) and 0s (low
or no voltage).
IMAGE SOURCE: https://www.dspguide.com/graphics/T_4_3.gif
MACHINE LANGUAGE
To understand binary coding,
consider the use of 7–segment
LED Display.
IMAGE SOURCE: https://www.cs.mtsu.edu/~xyang/images/computer-language-types.png
The zero represents a situation
where there is no voltage that
entered the circuit or an “off”
state while one represents an
“on” state where a high voltage
entered the circuit.
MACHINE LANGUAGE
IMAGE SOURCE: https://www.dspguide.com/graphics/T_4_3.gif
MACHINE LANGUAGE
IMAGE SOURCE: https://www.computerhope.com/jargon/m/machlang.htm
ASSEMBLY LANGUAGE
Assembly Language is a type of low-
level programming language that uses
mnemonics to act as an intermediary
interface between human and
computers.
IMAGE SOURCE:
https://isaaccomputerscience.org/api/v3.5.0/api/images/content/computer_science/computer_systems/progr
amming_languages/figures/isaac_cs_sys_proglang_simulator_display_if.png
Mnemonics refers to a string of
letters that represents a shortened
version of the instruction.
ASSEMBLY LANGUAGE
VIDEO SOURCE: https://www.youtube.com/watch?v=4gwYkEK0gOk
ASSEMBLY LANGUAGE
An assembler is needed to make the computer understand the
codes written by the programmer. Assembler is a program that
converts a predefined language to machine language so that
the computer will understand what an abstracted code means.
IMAGE SOURCE: https://i.stack.imgur.com/ZF4p5.jpg
ADVANTAGES OF LOW-LEVEL LANGUAGE
▪ The instructions are executed quickly since
there is minimal need for translation between
languages.
▪ The instructions require very small amount of
space in the memory.
▪ It offers a high level of security since the
program is written in a language that is
difficult to modify because of its complexity.
DISADVANTAGES OF LOW-LEVEL LANGUAGE
▪ It is very difficult to code using binary code.
▪ It is difficult to debug and maintain.
▪ Programs written in low-level languages are not portable
since they are written for specific specific computers.
TYPES OF
HIGH LEVEL LANGUAGE
HIGH-LEVEL LANGUAGE
Procedural Language is a high-level programming
language where the program is executed using a sequence
or a strict series of steps.
Object-Oriented Language is a high-level programming
language where the program is executed based on the
interaction of functions between objects.
ADVANTAGES OF HIGH-LEVEL LANGUAGE
▪ High-Level Languages are easy to understand
because it uses English language.
▪ Programs written using High-Level Languages
are portable meaning they can be used in
other computers aside from the computer
where the codes are written.
▪ Programs written in High-Level languages are
easier to debug and maintain.
DISADVANTAGES OF HIGH-LEVEL LANGUAGE
▪ Instructions written using High-Level Language
programs takes longer time to process
because of the translation process from
human language to machine language.
▪ Programs written in high-level language
consumes a larger amount of memory
compared to Lower-Level programs because
of the interpreters, compilers, and other
processes needed for ease of translation.
HISTORY OF
PROGRAMMING
LANGUAGES
HISTORY OF PROGRAMMING
VIDEO SOURCE: https://www.youtube.com/watch?v=mhpslN-OD_o
INTRODUCTION TO
PROGRAMMING
MR. ROWELL L. MARQUINA
Professional Lecturer,
Polytechnic University of the Philippines
Email Address:
rowell.marquina001@deped.gov.ph
sirrowellmarquina@gmail.com
rmarquina@mitis.edu.ph

More Related Content

What's hot

BASIC ELEMENTS OF TECHNICAL DRAWING.pptx
BASIC ELEMENTS OF TECHNICAL DRAWING.pptxBASIC ELEMENTS OF TECHNICAL DRAWING.pptx
BASIC ELEMENTS OF TECHNICAL DRAWING.pptxErleeJuneAnnNavarra
 
Performing Computer Operations (PCO)
Performing Computer Operations (PCO)Performing Computer Operations (PCO)
Performing Computer Operations (PCO)Walden Macabuhay
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Types of components and objects to be measured_Lesson Plan
Types of components and objects to be measured_Lesson PlanTypes of components and objects to be measured_Lesson Plan
Types of components and objects to be measured_Lesson PlanBryan Corpuz
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchartJordan Delacruz
 
Common Computer Faults and Problems
Common Computer Faults and ProblemsCommon Computer Faults and Problems
Common Computer Faults and ProblemsSef Cambaliza
 
Module 1-parts of computer and its functions
Module 1-parts of computer and its functionsModule 1-parts of computer and its functions
Module 1-parts of computer and its functionsRajashekhar Shirvalkar
 
CSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKS
CSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKSCSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKS
CSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKSEric Talamisan
 
Ict 9 module 4 introduction
Ict 9 module 4 introductionIct 9 module 4 introduction
Ict 9 module 4 introductionYonel Cadapan
 
Plan and Prepare for Configuration
Plan and Prepare for Configuration Plan and Prepare for Configuration
Plan and Prepare for Configuration nanette sansano
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNSU-Biliran Campus
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Input Data into Computer.pdf
Input Data into Computer.pdfInput Data into Computer.pdf
Input Data into Computer.pdfsuertezaragosa2
 
Ict 9 module 3 introduction
Ict 9 module 3 introductionIct 9 module 3 introduction
Ict 9 module 3 introductionYonel Cadapan
 
Installing and configuring computer System
Installing and configuring computer SystemInstalling and configuring computer System
Installing and configuring computer Systemiankeithsomoza
 
What is Application Software?
What is Application Software?What is Application Software?
What is Application Software?DaisyJeffenYRios
 
Basic computer maintenance
Basic computer maintenanceBasic computer maintenance
Basic computer maintenancegeepatty
 

What's hot (20)

BASIC ELEMENTS OF TECHNICAL DRAWING.pptx
BASIC ELEMENTS OF TECHNICAL DRAWING.pptxBASIC ELEMENTS OF TECHNICAL DRAWING.pptx
BASIC ELEMENTS OF TECHNICAL DRAWING.pptx
 
Performing Computer Operations (PCO)
Performing Computer Operations (PCO)Performing Computer Operations (PCO)
Performing Computer Operations (PCO)
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Types of components and objects to be measured_Lesson Plan
Types of components and objects to be measured_Lesson PlanTypes of components and objects to be measured_Lesson Plan
Types of components and objects to be measured_Lesson Plan
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
 
Common Computer Faults and Problems
Common Computer Faults and ProblemsCommon Computer Faults and Problems
Common Computer Faults and Problems
 
Module 1-parts of computer and its functions
Module 1-parts of computer and its functionsModule 1-parts of computer and its functions
Module 1-parts of computer and its functions
 
CSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKS
CSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKSCSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKS
CSS CORE 1 - INSTALL & CONFIGURE COMPUTER SYSTEMS AND NETWORKS
 
Ict 9 module 4 introduction
Ict 9 module 4 introductionIct 9 module 4 introduction
Ict 9 module 4 introduction
 
Plan and Prepare for Configuration
Plan and Prepare for Configuration Plan and Prepare for Configuration
Plan and Prepare for Configuration
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Input Data into Computer.pdf
Input Data into Computer.pdfInput Data into Computer.pdf
Input Data into Computer.pdf
 
CREATIVE TECHNOLOGY 7 QI-L1
CREATIVE TECHNOLOGY 7 QI-L1CREATIVE TECHNOLOGY 7 QI-L1
CREATIVE TECHNOLOGY 7 QI-L1
 
CREATIVE TECHNOLOGY 7 QI-L2
CREATIVE TECHNOLOGY 7 QI-L2CREATIVE TECHNOLOGY 7 QI-L2
CREATIVE TECHNOLOGY 7 QI-L2
 
Ict 9 module 3 introduction
Ict 9 module 3 introductionIct 9 module 3 introduction
Ict 9 module 3 introduction
 
Installing and configuring computer System
Installing and configuring computer SystemInstalling and configuring computer System
Installing and configuring computer System
 
What is Application Software?
What is Application Software?What is Application Software?
What is Application Software?
 
CSS CBC
CSS CBCCSS CBC
CSS CBC
 
Basic computer maintenance
Basic computer maintenanceBasic computer maintenance
Basic computer maintenance
 

Similar to Lesson 1 - Introduction to Programming .pdf

Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming LanguageTeddy Marcus
 
Introduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxIntroduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxMahamaHaruna
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxAryaDutta4
 
Top Programming Languages of 2020
Top Programming Languages of 2020Top Programming Languages of 2020
Top Programming Languages of 2020Ikbal Ahmed
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docAmanGunner
 
Career potentials and opportunities in ICT
Career potentials and opportunities in ICTCareer potentials and opportunities in ICT
Career potentials and opportunities in ICTOsahon Gino Ediagbonya
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programmingAzmiah Mahmud
 
computer languages
computer languagescomputer languages
computer languagesYasirali328
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languagesNaqashAhmad14
 
Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Digvijaysinh Gohil
 
Form5 cd1
Form5 cd1Form5 cd1
Form5 cd1smktsj2
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programmingKak Yong
 

Similar to Lesson 1 - Introduction to Programming .pdf (20)

Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming Language
 
Introduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxIntroduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptx
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptx
 
Top Programming Languages of 2020
Top Programming Languages of 2020Top Programming Languages of 2020
Top Programming Languages of 2020
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
 
La5 programming
La5  programmingLa5  programming
La5 programming
 
Career potentials and opportunities in ICT
Career potentials and opportunities in ICTCareer potentials and opportunities in ICT
Career potentials and opportunities in ICT
 
Programming Part 01
Programming Part 01Programming Part 01
Programming Part 01
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
computer languages
computer languagescomputer languages
computer languages
 
Notacd071
Notacd071Notacd071
Notacd071
 
Notacd07
Notacd07Notacd07
Notacd07
 
Nota programming
Nota programmingNota programming
Nota programming
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Ict topic 5
Ict topic 5Ict topic 5
Ict topic 5
 
Computer language
Computer languageComputer language
Computer language
 
Form5 cd1
Form5 cd1Form5 cd1
Form5 cd1
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 

More from ROWELL MARQUINA

QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 
QMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptxQMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptxROWELL MARQUINA
 
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdfHCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdfROWELL MARQUINA
 
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfHCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfROWELL MARQUINA
 
DS Lesson 2 - Subsets, Supersets and Power Set.pdf
DS Lesson 2 - Subsets, Supersets and Power Set.pdfDS Lesson 2 - Subsets, Supersets and Power Set.pdf
DS Lesson 2 - Subsets, Supersets and Power Set.pdfROWELL MARQUINA
 
ITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdfITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdfROWELL MARQUINA
 
ITSP Lesson 5 - Intellectual Property Rights.pdf
ITSP Lesson 5 - Intellectual Property Rights.pdfITSP Lesson 5 - Intellectual Property Rights.pdf
ITSP Lesson 5 - Intellectual Property Rights.pdfROWELL MARQUINA
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfROWELL MARQUINA
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfROWELL MARQUINA
 
Animation Lesson 4 - Tools and Equipment in Animation.pdf
Animation Lesson 4 - Tools and Equipment in Animation.pdfAnimation Lesson 4 - Tools and Equipment in Animation.pdf
Animation Lesson 4 - Tools and Equipment in Animation.pdfROWELL MARQUINA
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfROWELL MARQUINA
 
DSA Lesson 1 - Introduction to Data Structures.pdf
DSA Lesson 1 - Introduction to Data Structures.pdfDSA Lesson 1 - Introduction to Data Structures.pdf
DSA Lesson 1 - Introduction to Data Structures.pdfROWELL MARQUINA
 
Java Programming - Conditional Statements (Switch).pdf
Java Programming - Conditional Statements (Switch).pdfJava Programming - Conditional Statements (Switch).pdf
Java Programming - Conditional Statements (Switch).pdfROWELL MARQUINA
 
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfAnimation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfROWELL MARQUINA
 
Animation Lesson 2 - Environment and Market (Updated).pdf
Animation Lesson 2 - Environment and Market (Updated).pdfAnimation Lesson 2 - Environment and Market (Updated).pdf
Animation Lesson 2 - Environment and Market (Updated).pdfROWELL MARQUINA
 
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfAnimation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfROWELL MARQUINA
 
Personal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdfPersonal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdfROWELL MARQUINA
 
Environment and Market.pdf
Environment and Market.pdfEnvironment and Market.pdf
Environment and Market.pdfROWELL MARQUINA
 
Lesson 5 - Getting Input from Users.pdf
Lesson 5 - Getting Input from Users.pdfLesson 5 - Getting Input from Users.pdf
Lesson 5 - Getting Input from Users.pdfROWELL MARQUINA
 
Lesson 4 - Data and Variables.pdf
Lesson 4 - Data and Variables.pdfLesson 4 - Data and Variables.pdf
Lesson 4 - Data and Variables.pdfROWELL MARQUINA
 

More from ROWELL MARQUINA (20)

QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
QMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptxQMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptx
 
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdfHCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
 
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfHCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
 
DS Lesson 2 - Subsets, Supersets and Power Set.pdf
DS Lesson 2 - Subsets, Supersets and Power Set.pdfDS Lesson 2 - Subsets, Supersets and Power Set.pdf
DS Lesson 2 - Subsets, Supersets and Power Set.pdf
 
ITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdfITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdf
 
ITSP Lesson 5 - Intellectual Property Rights.pdf
ITSP Lesson 5 - Intellectual Property Rights.pdfITSP Lesson 5 - Intellectual Property Rights.pdf
ITSP Lesson 5 - Intellectual Property Rights.pdf
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
 
Animation Lesson 4 - Tools and Equipment in Animation.pdf
Animation Lesson 4 - Tools and Equipment in Animation.pdfAnimation Lesson 4 - Tools and Equipment in Animation.pdf
Animation Lesson 4 - Tools and Equipment in Animation.pdf
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
DSA Lesson 1 - Introduction to Data Structures.pdf
DSA Lesson 1 - Introduction to Data Structures.pdfDSA Lesson 1 - Introduction to Data Structures.pdf
DSA Lesson 1 - Introduction to Data Structures.pdf
 
Java Programming - Conditional Statements (Switch).pdf
Java Programming - Conditional Statements (Switch).pdfJava Programming - Conditional Statements (Switch).pdf
Java Programming - Conditional Statements (Switch).pdf
 
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfAnimation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
 
Animation Lesson 2 - Environment and Market (Updated).pdf
Animation Lesson 2 - Environment and Market (Updated).pdfAnimation Lesson 2 - Environment and Market (Updated).pdf
Animation Lesson 2 - Environment and Market (Updated).pdf
 
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfAnimation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
 
Personal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdfPersonal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdf
 
Environment and Market.pdf
Environment and Market.pdfEnvironment and Market.pdf
Environment and Market.pdf
 
Lesson 5 - Getting Input from Users.pdf
Lesson 5 - Getting Input from Users.pdfLesson 5 - Getting Input from Users.pdf
Lesson 5 - Getting Input from Users.pdf
 
Lesson 4 - Data and Variables.pdf
Lesson 4 - Data and Variables.pdfLesson 4 - Data and Variables.pdf
Lesson 4 - Data and Variables.pdf
 

Recently uploaded

Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfFIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?Paolo Missier
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch TuesdayIvanti
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jNeo4j
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 

Recently uploaded (20)

Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 

Lesson 1 - Introduction to Programming .pdf

  • 1. INTRODUCTION TO PROGRAMMING Lesson 1 – Programming Logic and Design MR. ROWELL L. MARQUINA IT Instructor, PUP Biñan
  • 3. WHAT IS A PROGRAM? A program refers to a set of commands that provide instructions to a computer on how to perform a specific task. IMAGE SOURCE: https://beginnersbook.com/wp-content/uploads/2019/07/Java_program_simple_interest.jpg
  • 4. WHAT IS A PROGRAM? A program can instruct the computer to: ▪ display message on screen ▪ get input from users ▪ perform arithmetic operations ▪ compare values ▪ perform iterations IMAGE SOURCE: https://beginnersbook.com/wp-content/uploads/2019/07/Java_program_simple_interest.jpg
  • 6. WHAT IS A PROGRAMMING LANGUAGE? A programming language is an artificial language developed to provide a communication link between humans and computers. IMAGE SOURCE: https://miro.medium.com/v2/resize:fit:820/1*v5NRqLcyXIVNaG5KLjKIQA.png Like a formal language, a programming language is defined by its two components: syntax (form) and semantics (meaning).
  • 7. WHAT IS A PROGRAMMING LANGUAGE? Syntax refers to the principle that guides how a specific instruction is written. IMAGE SOURCE: https://cs.lmu.edu/~ray/images/ast.png It details the rules on how symbols, punctuations, and words are used in a programming language to write a command.
  • 8. WHAT IS A PROGRAMMING LANGUAGE? Semantics refers to an analytical system that conveys or defines the meaning of a written instruction in a program. IMAGE SOURCE: https://www.baeldung.com/wp-content/uploads/sites/4/2022/10/Lexic2.png It is used to generate and validate meanings of a piece of code.
  • 10. TYPES OF PROGRAMMING LANGUAGE Programming Language can be classified into two generations: ▪ Low Level Language ▪ High Level Language IMAGE SOURCE: https://miro.medium.com/v2/resize:fit:624/1*icGwCEFBJTjIPcslHeL1Eg.png
  • 12. LOW LEVEL LANGUAGE Low Level Language is a type of programming language that is machine dependent and provides little to no abstraction in the interface between programmers and the machine. IMAGE SOURCE: https://www.deviantart.com/findingnull/art/Binary-GIF-871009093
  • 13. HIGH-LEVEL LANGUAGE A High-Level Language is a user- friendly programming language that allows programmers to write their programs using natural language. IMAGE SOURCE: https://beginnersbook.com/wp-content/uploads/2019/07/Java_program_simple_interest.jpg Since High-Level Language is independent of the computer hardware architecture, the syntax is created in a form that can be easily read and understood by humans.
  • 14. TYPES OF LOW LEVEL LANGUAGE
  • 15. MACHINE LANGUAGE Machine Language is a type of low-level programming language where the instructions are written using binary code. A binary code refers to a string of 1s (high voltage) and 0s (low or no voltage). IMAGE SOURCE: https://www.dspguide.com/graphics/T_4_3.gif
  • 16. MACHINE LANGUAGE To understand binary coding, consider the use of 7–segment LED Display. IMAGE SOURCE: https://www.cs.mtsu.edu/~xyang/images/computer-language-types.png The zero represents a situation where there is no voltage that entered the circuit or an “off” state while one represents an “on” state where a high voltage entered the circuit.
  • 17. MACHINE LANGUAGE IMAGE SOURCE: https://www.dspguide.com/graphics/T_4_3.gif
  • 18. MACHINE LANGUAGE IMAGE SOURCE: https://www.computerhope.com/jargon/m/machlang.htm
  • 19. ASSEMBLY LANGUAGE Assembly Language is a type of low- level programming language that uses mnemonics to act as an intermediary interface between human and computers. IMAGE SOURCE: https://isaaccomputerscience.org/api/v3.5.0/api/images/content/computer_science/computer_systems/progr amming_languages/figures/isaac_cs_sys_proglang_simulator_display_if.png Mnemonics refers to a string of letters that represents a shortened version of the instruction.
  • 20. ASSEMBLY LANGUAGE VIDEO SOURCE: https://www.youtube.com/watch?v=4gwYkEK0gOk
  • 21. ASSEMBLY LANGUAGE An assembler is needed to make the computer understand the codes written by the programmer. Assembler is a program that converts a predefined language to machine language so that the computer will understand what an abstracted code means. IMAGE SOURCE: https://i.stack.imgur.com/ZF4p5.jpg
  • 22. ADVANTAGES OF LOW-LEVEL LANGUAGE ▪ The instructions are executed quickly since there is minimal need for translation between languages. ▪ The instructions require very small amount of space in the memory. ▪ It offers a high level of security since the program is written in a language that is difficult to modify because of its complexity.
  • 23. DISADVANTAGES OF LOW-LEVEL LANGUAGE ▪ It is very difficult to code using binary code. ▪ It is difficult to debug and maintain. ▪ Programs written in low-level languages are not portable since they are written for specific specific computers.
  • 25. HIGH-LEVEL LANGUAGE Procedural Language is a high-level programming language where the program is executed using a sequence or a strict series of steps. Object-Oriented Language is a high-level programming language where the program is executed based on the interaction of functions between objects.
  • 26. ADVANTAGES OF HIGH-LEVEL LANGUAGE ▪ High-Level Languages are easy to understand because it uses English language. ▪ Programs written using High-Level Languages are portable meaning they can be used in other computers aside from the computer where the codes are written. ▪ Programs written in High-Level languages are easier to debug and maintain.
  • 27. DISADVANTAGES OF HIGH-LEVEL LANGUAGE ▪ Instructions written using High-Level Language programs takes longer time to process because of the translation process from human language to machine language. ▪ Programs written in high-level language consumes a larger amount of memory compared to Lower-Level programs because of the interpreters, compilers, and other processes needed for ease of translation.
  • 29. HISTORY OF PROGRAMMING VIDEO SOURCE: https://www.youtube.com/watch?v=mhpslN-OD_o
  • 30. INTRODUCTION TO PROGRAMMING MR. ROWELL L. MARQUINA Professional Lecturer, Polytechnic University of the Philippines Email Address: rowell.marquina001@deped.gov.ph sirrowellmarquina@gmail.com rmarquina@mitis.edu.ph