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

Application Software
Application SoftwareApplication Software
Application SoftwareDasun Hegoda
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | IntroductionJohnTaieb
 
Basic of Computer software
Basic of Computer softwareBasic of Computer software
Basic of Computer softwaresuraj pandey
 
Introduction to Hardware and Software
Introduction to Hardware and SoftwareIntroduction to Hardware and Software
Introduction to Hardware and SoftwarePravinGhosekar
 
Lecture 1 introduction to flash
Lecture 1 introduction to flashLecture 1 introduction to flash
Lecture 1 introduction to flashpoleyseugenio
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Web development presentation
Web development presentationWeb development presentation
Web development presentationVaishnavi8950
 
Utility software
Utility softwareUtility software
Utility softwareadeang47
 
Software and hardware
Software and hardwareSoftware and hardware
Software and hardwaremeryy21
 
Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web DevelopmentYash Sati
 
Lesson 5 computer software
Lesson 5 computer softwareLesson 5 computer software
Lesson 5 computer softwareVishal Patyal
 
Animations Lesson Plan
Animations Lesson PlanAnimations Lesson Plan
Animations Lesson Planrusty
 
Programming languages
Programming languagesProgramming languages
Programming languagesSimon Mui
 

What's hot (20)

Hyperlinking the Presentation
Hyperlinking the PresentationHyperlinking the Presentation
Hyperlinking the Presentation
 
Application Software
Application SoftwareApplication Software
Application Software
 
Blogging Basics
Blogging BasicsBlogging Basics
Blogging Basics
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
 
Basic of Computer software
Basic of Computer softwareBasic of Computer software
Basic of Computer software
 
Introduction to Hardware and Software
Introduction to Hardware and SoftwareIntroduction to Hardware and Software
Introduction to Hardware and Software
 
Lecture 1 introduction to flash
Lecture 1 introduction to flashLecture 1 introduction to flash
Lecture 1 introduction to flash
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
 
Application Software
Application Software Application Software
Application Software
 
Web development presentation
Web development presentationWeb development presentation
Web development presentation
 
Phone gap
Phone gapPhone gap
Phone gap
 
Utility software
Utility softwareUtility software
Utility software
 
Software and hardware
Software and hardwareSoftware and hardware
Software and hardware
 
Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web Development
 
Lesson 5 computer software
Lesson 5 computer softwareLesson 5 computer software
Lesson 5 computer software
 
Basic Computer Parts
Basic Computer PartsBasic Computer Parts
Basic Computer Parts
 
Rules of the computer lab
Rules of the computer labRules of the computer lab
Rules of the computer lab
 
Animations Lesson Plan
Animations Lesson PlanAnimations Lesson Plan
Animations Lesson Plan
 
Programming languages
Programming languagesProgramming languages
Programming languages
 

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 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
 
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.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 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

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 

Recently uploaded (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 

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