SlideShare a Scribd company logo
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

Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Akshay Nagpurkar
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTC programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
Batra Centre
 
Solidworks ppt 2015
Solidworks ppt 2015Solidworks ppt 2015
Solidworks ppt 2015
lalit yadav
 
Software evolution and maintenance
Software evolution and maintenanceSoftware evolution and maintenance
Software evolution and maintenance
Feliciano Colella
 
Presentation on Solidworks
Presentation on SolidworksPresentation on Solidworks
Presentation on Solidworks
MLV Textile & Engineering College
 
Solid Works Presentation
Solid Works PresentationSolid Works Presentation
Solid Works PresentationPankaj Dogra
 
Pressman ch-1-software
Pressman ch-1-softwarePressman ch-1-software
Pressman ch-1-software
AlenaDion
 
Lecture 5 macromedia flash
Lecture 5 macromedia flashLecture 5 macromedia flash
Lecture 5 macromedia flash
poleyseugenio
 
ReSharper Presentation for NUGs
ReSharper Presentation for NUGsReSharper Presentation for NUGs
ReSharper Presentation for NUGs
Dmitri Nesteruk
 
Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)
Gajeshwar Bahekar
 
LESSON 2 - Flash Animation
LESSON 2 - Flash AnimationLESSON 2 - Flash Animation
LESSON 2 - Flash Animation
Marvin Bronoso
 
Assembly of Plummer block
Assembly of Plummer blockAssembly of Plummer block
Project managemen concept
Project managemen conceptProject managemen concept
Project managemen concept
Karthikeyan Subramanian
 
Photoshop Introduction
Photoshop IntroductionPhotoshop Introduction
Photoshop Introduction
Z Hoeben
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
Raj Thilak S
 
How Do You Build Software? Software Engineering Practices of an Agile Developer
How Do You Build Software? Software Engineering Practices of an Agile DeveloperHow Do You Build Software? Software Engineering Practices of an Agile Developer
How Do You Build Software? Software Engineering Practices of an Agile Developer
Lemi Orhan Ergin
 
Presentation on autocadd
Presentation on autocaddPresentation on autocadd
Presentation on autocadd
Pratap Shinde
 
What Is powerpoint
What Is powerpointWhat Is powerpoint
What Is powerpointlmm323
 
No Silver Bullet - Essence and Accidents of Software Engineering
No Silver Bullet - Essence and Accidents of Software EngineeringNo Silver Bullet - Essence and Accidents of Software Engineering
No Silver Bullet - Essence and Accidents of Software Engineering
Aditi Abhang
 

What's hot (20)

Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTC programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
 
Solidworks ppt 2015
Solidworks ppt 2015Solidworks ppt 2015
Solidworks ppt 2015
 
Software evolution and maintenance
Software evolution and maintenanceSoftware evolution and maintenance
Software evolution and maintenance
 
Presentation on Solidworks
Presentation on SolidworksPresentation on Solidworks
Presentation on Solidworks
 
Solid Works Presentation
Solid Works PresentationSolid Works Presentation
Solid Works Presentation
 
Pressman ch-1-software
Pressman ch-1-softwarePressman ch-1-software
Pressman ch-1-software
 
Lecture 5 macromedia flash
Lecture 5 macromedia flashLecture 5 macromedia flash
Lecture 5 macromedia flash
 
ReSharper Presentation for NUGs
ReSharper Presentation for NUGsReSharper Presentation for NUGs
ReSharper Presentation for NUGs
 
Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)
 
LESSON 2 - Flash Animation
LESSON 2 - Flash AnimationLESSON 2 - Flash Animation
LESSON 2 - Flash Animation
 
Assembly of Plummer block
Assembly of Plummer blockAssembly of Plummer block
Assembly of Plummer block
 
Project managemen concept
Project managemen conceptProject managemen concept
Project managemen concept
 
Photoshop Introduction
Photoshop IntroductionPhotoshop Introduction
Photoshop Introduction
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
How Do You Build Software? Software Engineering Practices of an Agile Developer
How Do You Build Software? Software Engineering Practices of an Agile DeveloperHow Do You Build Software? Software Engineering Practices of an Agile Developer
How Do You Build Software? Software Engineering Practices of an Agile Developer
 
Presentation on autocadd
Presentation on autocaddPresentation on autocadd
Presentation on autocadd
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
What Is powerpoint
What Is powerpointWhat Is powerpoint
What Is powerpoint
 
No Silver Bullet - Essence and Accidents of Software Engineering
No Silver Bullet - Essence and Accidents of Software EngineeringNo Silver Bullet - Essence and Accidents of Software Engineering
No Silver Bullet - Essence and Accidents of Software Engineering
 

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 Language
Teddy 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.pptx
MahamaHaruna
 
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
AryaDutta4
 
Top Programming Languages of 2020
Top Programming Languages of 2020Top Programming Languages of 2020
Top Programming Languages of 2020
Ikbal 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.doc
AmanGunner
 
Career potentials and opportunities in ICT
Career potentials and opportunities in ICTCareer potentials and opportunities in ICT
Career potentials and opportunities in ICT
Osahon Gino Ediagbonya
 
Programming Part 01
Programming Part 01Programming Part 01
Programming Part 01
zakri zakaria
 
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 languages
Yasirali328
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
NaqashAhmad14
 
Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)
Digvijaysinh Gohil
 
Computer languages
Computer languagesComputer languages
Computer languages
BESOR ACADEMY
 
Ict topic 5
Ict topic 5Ict topic 5
Ict topic 5
kwongliik
 
Computer language
Computer languageComputer language
Computer language
WASEEM ARSLAN
 
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.pdf
ROWELL 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.pptx
ROWELL 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).pdf
ROWELL 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.pdf
ROWELL 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.pdf
ROWELL MARQUINA
 
ITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdfITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdf
ROWELL 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.pdf
ROWELL 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.pdf
ROWELL 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.pdf
ROWELL 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.pdf
ROWELL 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.pdf
ROWELL MARQUINA
 
Java Programming - Conditional Statements (Switch).pdf
Java Programming - Conditional Statements (Switch).pdfJava Programming - Conditional Statements (Switch).pdf
Java Programming - Conditional Statements (Switch).pdf
ROWELL 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.pdf
ROWELL 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).pdf
ROWELL 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.pdf
ROWELL MARQUINA
 
Personal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdfPersonal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdf
ROWELL MARQUINA
 
Environment and Market.pdf
Environment and Market.pdfEnvironment and Market.pdf
Environment and Market.pdf
ROWELL 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.pdf
ROWELL MARQUINA
 
Lesson 4 - Data and Variables.pdf
Lesson 4 - Data and Variables.pdfLesson 4 - Data and Variables.pdf
Lesson 4 - Data and Variables.pdf
ROWELL MARQUINA
 
Lesson 3 - Displaying Text on Screen.pdf
Lesson 3 - Displaying Text on Screen.pdfLesson 3 - Displaying Text on Screen.pdf
Lesson 3 - Displaying Text on Screen.pdf
ROWELL 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 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
 
Lesson 3 - Displaying Text on Screen.pdf
Lesson 3 - Displaying Text on Screen.pdfLesson 3 - Displaying Text on Screen.pdf
Lesson 3 - Displaying Text on Screen.pdf
 

Recently uploaded

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 

Recently uploaded (20)

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 

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