SlideShare a Scribd company logo
M1 – The Process of Programming
School of Media, Art, & Design
CWMD2601 –
Scripting for Design
4/3/2020 M1 – The Process of Programming 1
4/3/2020 M1 – The Process of Programming 2
functionsreuse
decisionscondition
loops
repeat
arrays and
objects
variables
values
expressions
key elements
Programming
process
M1 – week 1
M2 – week 2
M3 – week 3
M4 – week 4 and 5
M5 – week 6, 8 and 9
(week 7 –mid term)
M6 – week 10 and 11
M7 – week 12 and 13
(week 14 – final)
Course Learning Path – 7 Modules
enhance
JavaScript
programming
4/3/2020 M1 – The Process of Programming 3
M1 The Process of Programming – Objectives
Introduction to
 Algorithms
 Pseudo Code
 Flow Charts
 Essential Statements
4/3/2020 M1 – The Process of Programming 4
M1 The Process of Programming – Activities (WK1)
 Explore the process of programming
 Define programming
 Identify some of the characteristics of
programming
 Introduce and define the algorithm concept
 Define several basic programming concepts and
terms that will be used in the course
 Identify the fundamental components of
programming languages
4/3/2020 M1 - The Process of Programming 5
M1 The Process of Programming – Topics
 The Programming Process
 Algorithm
 Pseudo Code
 Flow Chart
 The 6 Essential Statements
Before we start,
ask yourself: “Am I a programmer?”
4/3/2020 M1 – The Process of Programming
Recipes
-for human
Program
-for machine
Objectives
(WANT)
Programming Process – Like cooking
Instructions
(HOW)
Cooking
(baking, steaming,
pressuring…etc)
6
4/3/2020 M1 – The Process of Programming
7
Programming Process – Web Development
Recipes
(for Human)
Program
(for Machine)
Objectives
(WHAT)
Instructions
(HOW)
Cooker
(baking, steaming,
pressuring…etc)
Algorithms
Pseudo code & Flow
Chart
Statements
HTML, CSS, JavaScript
Interactive &
Dynamic Web Page
Codes
(HOW)
Interpreter
Browser
7
An algorithm is the blueprint for a program:
 Pseudo code algorithms, be described
"informally" with a mix of natural language,
math, and logic notation, e.g.
1. Step 1: getting the beef ready for cooking
2. Step 2: seasoning the beef
3. ….
4. Step n: set Air Fryer to….
 Flowchart, another algorithm type, is a diagram
or visual representation of steps and their
execution order
M1 – The Process of Programming
Algorithm: Pseudo Code and Flow Chart
START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
4/3/2020 8
I&DWP
Algorithms
(PC & FC)
Statements
Interpreter
START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
 Various flowchart languages exist, but almost all of them
include the following kinds of symbols:
1. Terminal (begin/end)
2. input/output
3. process
4. decision
5. flow (order of execution)
M1 – The Process of Programming
4/3/2020 9
Algorithm - Flow Chart Symbols
SEQUENCE DECISION LOOP
I&DWP
Algorithms
(PC & FC)
Statements
Interpreter
M1 – The Process of Programming
Statements – Instructions for machines
 Run/Execute -when computer performs those steps
 Languages – low to high level, JavaScript, HMTL and CSS are
samples of high level languages
 Translations – compile vs interpret
 Syntax – language or statement rules
 Six essential statements –input, output,
declaration, assignment, decision and loop
4/3/2020 10
I&DWP
Algorithms
(PC & FC)
Statements
InterpreterA sequence of steps or instructions that a computer
understands, aka computer program
(known as IPO statements)
M1 – The Process of Programming
Statements – The 6 essential statements
 Browser – the interpreter for HTML, CSS and JavaScript
 IPO – input, process and output, 6 essentials
statements being interpreted, each has their
corresponding flow chart symbols
PROCESS
2. Create a storage and reference, called
variable
3. Compute and store a value in a variable
4. Decide which statement to perform next
5. Repeat one or more statements based on the
condition
1. Input 6. Output
4/3/2020 11
Need an engine to interpret and execute statements: START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
output
IPO
Summary: The Process of Web Programming
Algorithms
Pseudo code (PC)
& Flow Chart (FC)
Statements
HTML, CSS, JavaScript
Interactive & Dynamic
Web Page
CODES
Interpreter
Browser
The 6 Essential
Statements (IPO)
The Essential Symbols
1. Terminal
2. Input/output
3. Process
4. Decision
5. Flows:
 linear
 selection and
 repetition
4/3/2020 M1 – The Process of Programming 12
Programming
START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
output
INPUT prompt, confirm
OUTPUT alert, console.log
DECLARATION var, let, const
EXPRESSION assignment, operators
DECISION if, switch
LOOP while, for
Which of the follow(s) are samples of an
Algorithm and used in program designs?
A. A type of diagram that
represents a workflow or
process.
B. An informal high-level
description of the operating
principle of a computer
program, intended for human
reading rather than machine
reading.
C. Instructions for computer to
understand and follow
D. A standard markup language
for creating web pages
4/3/2020 M1 – The Process of Programming 13
What is a high-level description of a programming
algorithm that uses simple English and is intended
for human reading?
A. Pseudocode
B. C
C. Flowchart
D. JavaScript
4/3/2020 M1 – The Process of Programming 14
In creating pseudocodes: Put computer
commands on a line.
A. True
B. False
4/3/2020 M1 – The Process of Programming 15
In creating pseudocodes, always start from
top to bottom.
A. True
B. False
4/3/2020 M1 – The Process of Programming 16
What is a flowchart?
A. A text-based way of designing
an algorithm
B. A set of diagrams that
represents a set of
instructions
4/3/2020 M1 – The Process of Programming 17
Which symbol do flowcharts begin with?
A. Rectangle
B. Circle
C. Parallelogram
D. Terminal
4/3/2020 M1 – The Process of Programming 18
Which flowchart symbol represents input?
A. Rectangle
B. Circle
C. Parallelogram
D. Terminal (ovals or rectangles
with rounded corners)
4/3/2020 M1 – The Process of Programming 19
Which flowchart symbol represents
condition?
A. Rectangle
B. Circle
C. Parallelogram
D. Diamond
4/3/2020 M1 – The Process of Programming 20
Which flowchart symbol represents process
statements?
A. Rectangle
B. Circle
C. Parallelogram
D. Diamond
4/3/2020 M1 – The Process of Programming 21
Inside the process symbol of the flow chart, there
can not be another flowchart, for modulization.
A. True
B. False
4/3/2020 M1 – The Process of Programming 22
START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
How are symbols in a flowchart connected?
A. Flowchart symbols do not get
connected together
B. With dashed lines and
numbers
C. With solid lines to link events
D. With lines and arrow to show
the flow and the direction
4/3/2020 M1 – The Process of Programming 23
The process of programming involves defining
program goals, designing pseudo codes or flow
charts, and writing/validating program codes.
A. True
B. False
4/3/2020 M1 – The Process of Programming 24
I&DWP
Algorithms
(PC & FC)
Statements
(HTML, CSS, JS)
Interpreter
(browser)
HINT
The last step of programming process is for the
browser engine to interprets the program codes
for executions
A. True
B. False
4/3/2020 M1 – The Process of Programming 25
Which of the followings are the 6 essential
statements (aka IPO statements)?
A. Input and Output
B. Declaration and Assignment
C. Decision and Loop
D. None of the above
4/3/2020 M1 – The Process of Programming 26
4/3/2020 M1 – The Process of Programming 27
Algorithms
Pseudo code & Flow
Chart
Statements
HTML, CSS, JavaScript
Interactive &
Dynamic Web Page
DESIGN AND WRITE
CODES
INTREPRET
Browser
The Process of Programming - The Takeaways
For Human
For Computer
START
input
Task(s)
STOP
Decision
output
Task(s)Task(s)
output
The IPO
Symbols
The IPO statementsINPUT prompt, confirm
OUTPUT alert, console.log
DECLARATION var, let, const
EXPRESSION assignment, operators
DECISION if, switch
LOOP while, for
M1 – The Process of Programming
Checkout
4/3/2020 28
 GO TO DC Connect
 Select CWMD-2601… SCRIPTING FOR DESIGN
 Click “Content”
 Under “Table of Contents”, select M1 – The process of
programming
 Select M1 Checklist
 Check all those objectives are met, raise questions if not sure

More Related Content

PDF
Computer programming chapter ( 3 )
PDF
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
PPT
Book ppt
PDF
Abc c program
PPSX
C basics 4 std11(GujBoard)
DOC
Programming in c notes
PPTX
JavaScript functions
Computer programming chapter ( 3 )
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
Book ppt
Abc c program
C basics 4 std11(GujBoard)
Programming in c notes
JavaScript functions

What's hot (18)

PPSX
Session1 c1
PDF
IP Lab Manual for Kerala University 3 Year UG Programme
DOC
Notes of c programming 1st unit BCA I SEM
PPT
Chapter 1 - An Introduction to Programming
PDF
Computer programming all chapters
PPTX
PROGRAMMING IN C - SARASWATHI RAMALINGAM
PPTX
1.1 programming fundamentals
PDF
Graphical Programming is Dead
PPT
Chapter 4 5
PDF
Introduction of c language
DOC
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
PPTX
Csc1100 lecture01 ch01 pt2-paradigm
PDF
Solutions manual for c++ programming from problem analysis to program design ...
PPTX
Overview of c
PDF
C lecture notes new
PPTX
C Programming and Coding Standards, Learn C Programming
DOCX
PDF
Programming in c
Session1 c1
IP Lab Manual for Kerala University 3 Year UG Programme
Notes of c programming 1st unit BCA I SEM
Chapter 1 - An Introduction to Programming
Computer programming all chapters
PROGRAMMING IN C - SARASWATHI RAMALINGAM
1.1 programming fundamentals
Graphical Programming is Dead
Chapter 4 5
Introduction of c language
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
Csc1100 lecture01 ch01 pt2-paradigm
Solutions manual for c++ programming from problem analysis to program design ...
Overview of c
C lecture notes new
C Programming and Coding Standards, Learn C Programming
Programming in c
Ad

Similar to The process of programming (20)

PPTX
10 lesson8
PPTX
IT sill module 1 presentation for Diploma students
DOCX
Introduction to Programming.docx
PPT
programming.ppt
PPT
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
PPT
Programming
PPT
Comp102 lec 1
PPT
Algorithms and Flowchart.ppt
PPT
learn computer science.ppt
PPT
Chapter 1- C++ programming languages +.ppt
PDF
algorithm-and-flowcharting.pdf
PDF
C Programming Lab - Session 1 - Flowcharts for Programs
PPTX
Introduction to computer programming
PPTX
PCCF UNIT 1.pptx
PPT
Fundamentals of Programming Chapter 3
PPTX
introduction to computing & programming
PPTX
introduction to programming
PPTX
lecture 5
PPTX
Introduction to computer science
PPTX
UNIT 2 ECSE-2.pptx
10 lesson8
IT sill module 1 presentation for Diploma students
Introduction to Programming.docx
programming.ppt
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
Programming
Comp102 lec 1
Algorithms and Flowchart.ppt
learn computer science.ppt
Chapter 1- C++ programming languages +.ppt
algorithm-and-flowcharting.pdf
C Programming Lab - Session 1 - Flowcharts for Programs
Introduction to computer programming
PCCF UNIT 1.pptx
Fundamentals of Programming Chapter 3
introduction to computing & programming
introduction to programming
lecture 5
Introduction to computer science
UNIT 2 ECSE-2.pptx
Ad

More from Kopi Maheswaran (20)

PDF
Kopinath retail installation_consideration2
PDF
Game Plan
DOCX
JavaScript Scripting For Design (CWMD 2601)
PDF
Scripting for design (cwmd 2601)
PPTX
variables, values and expressions
PDF
Cwmd 2601 2020
PPTX
getting started with java script
DOCX
Movie report
PDF
Scripting for Design
PDF
Vi cheat sheet
PDF
Elementsofdesign
PDF
Colour qualities
PDF
Colour relationships
PDF
Principlesofdesign
PDF
Compositional flow of information
PDF
Rhythm, framing, transparency and time & motion
PDF
common sentence errors
PDF
Brand Book
PDF
punctuation
PPTX
Protocols
Kopinath retail installation_consideration2
Game Plan
JavaScript Scripting For Design (CWMD 2601)
Scripting for design (cwmd 2601)
variables, values and expressions
Cwmd 2601 2020
getting started with java script
Movie report
Scripting for Design
Vi cheat sheet
Elementsofdesign
Colour qualities
Colour relationships
Principlesofdesign
Compositional flow of information
Rhythm, framing, transparency and time & motion
common sentence errors
Brand Book
punctuation
Protocols

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Pharma ospi slides which help in ospi learning
PPTX
master seminar digital applications in india
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Lesson notes of climatology university.
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Classroom Observation Tools for Teachers
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
RMMM.pdf make it easy to upload and study
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Pharma ospi slides which help in ospi learning
master seminar digital applications in india
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Lesson notes of climatology university.
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Final Presentation General Medicine 03-08-2024.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
Classroom Observation Tools for Teachers
A systematic review of self-coping strategies used by university students to ...
O7-L3 Supply Chain Operations - ICLT Program
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Complications of Minimal Access Surgery at WLH
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
RMMM.pdf make it easy to upload and study
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

The process of programming

  • 1. M1 – The Process of Programming School of Media, Art, & Design CWMD2601 – Scripting for Design 4/3/2020 M1 – The Process of Programming 1
  • 2. 4/3/2020 M1 – The Process of Programming 2 functionsreuse decisionscondition loops repeat arrays and objects variables values expressions key elements Programming process M1 – week 1 M2 – week 2 M3 – week 3 M4 – week 4 and 5 M5 – week 6, 8 and 9 (week 7 –mid term) M6 – week 10 and 11 M7 – week 12 and 13 (week 14 – final) Course Learning Path – 7 Modules enhance JavaScript programming
  • 3. 4/3/2020 M1 – The Process of Programming 3 M1 The Process of Programming – Objectives Introduction to  Algorithms  Pseudo Code  Flow Charts  Essential Statements
  • 4. 4/3/2020 M1 – The Process of Programming 4 M1 The Process of Programming – Activities (WK1)  Explore the process of programming  Define programming  Identify some of the characteristics of programming  Introduce and define the algorithm concept  Define several basic programming concepts and terms that will be used in the course  Identify the fundamental components of programming languages
  • 5. 4/3/2020 M1 - The Process of Programming 5 M1 The Process of Programming – Topics  The Programming Process  Algorithm  Pseudo Code  Flow Chart  The 6 Essential Statements Before we start, ask yourself: “Am I a programmer?”
  • 6. 4/3/2020 M1 – The Process of Programming Recipes -for human Program -for machine Objectives (WANT) Programming Process – Like cooking Instructions (HOW) Cooking (baking, steaming, pressuring…etc) 6
  • 7. 4/3/2020 M1 – The Process of Programming 7 Programming Process – Web Development Recipes (for Human) Program (for Machine) Objectives (WHAT) Instructions (HOW) Cooker (baking, steaming, pressuring…etc) Algorithms Pseudo code & Flow Chart Statements HTML, CSS, JavaScript Interactive & Dynamic Web Page Codes (HOW) Interpreter Browser 7
  • 8. An algorithm is the blueprint for a program:  Pseudo code algorithms, be described "informally" with a mix of natural language, math, and logic notation, e.g. 1. Step 1: getting the beef ready for cooking 2. Step 2: seasoning the beef 3. …. 4. Step n: set Air Fryer to….  Flowchart, another algorithm type, is a diagram or visual representation of steps and their execution order M1 – The Process of Programming Algorithm: Pseudo Code and Flow Chart START input Task(s) STOP Decision output Task(s)Task(s) 4/3/2020 8 I&DWP Algorithms (PC & FC) Statements Interpreter START input Task(s) STOP Decision output Task(s)Task(s)
  • 9.  Various flowchart languages exist, but almost all of them include the following kinds of symbols: 1. Terminal (begin/end) 2. input/output 3. process 4. decision 5. flow (order of execution) M1 – The Process of Programming 4/3/2020 9 Algorithm - Flow Chart Symbols SEQUENCE DECISION LOOP I&DWP Algorithms (PC & FC) Statements Interpreter
  • 10. M1 – The Process of Programming Statements – Instructions for machines  Run/Execute -when computer performs those steps  Languages – low to high level, JavaScript, HMTL and CSS are samples of high level languages  Translations – compile vs interpret  Syntax – language or statement rules  Six essential statements –input, output, declaration, assignment, decision and loop 4/3/2020 10 I&DWP Algorithms (PC & FC) Statements InterpreterA sequence of steps or instructions that a computer understands, aka computer program (known as IPO statements)
  • 11. M1 – The Process of Programming Statements – The 6 essential statements  Browser – the interpreter for HTML, CSS and JavaScript  IPO – input, process and output, 6 essentials statements being interpreted, each has their corresponding flow chart symbols PROCESS 2. Create a storage and reference, called variable 3. Compute and store a value in a variable 4. Decide which statement to perform next 5. Repeat one or more statements based on the condition 1. Input 6. Output 4/3/2020 11 Need an engine to interpret and execute statements: START input Task(s) STOP Decision output Task(s)Task(s) output IPO
  • 12. Summary: The Process of Web Programming Algorithms Pseudo code (PC) & Flow Chart (FC) Statements HTML, CSS, JavaScript Interactive & Dynamic Web Page CODES Interpreter Browser The 6 Essential Statements (IPO) The Essential Symbols 1. Terminal 2. Input/output 3. Process 4. Decision 5. Flows:  linear  selection and  repetition 4/3/2020 M1 – The Process of Programming 12 Programming START input Task(s) STOP Decision output Task(s)Task(s) output INPUT prompt, confirm OUTPUT alert, console.log DECLARATION var, let, const EXPRESSION assignment, operators DECISION if, switch LOOP while, for
  • 13. Which of the follow(s) are samples of an Algorithm and used in program designs? A. A type of diagram that represents a workflow or process. B. An informal high-level description of the operating principle of a computer program, intended for human reading rather than machine reading. C. Instructions for computer to understand and follow D. A standard markup language for creating web pages 4/3/2020 M1 – The Process of Programming 13
  • 14. What is a high-level description of a programming algorithm that uses simple English and is intended for human reading? A. Pseudocode B. C C. Flowchart D. JavaScript 4/3/2020 M1 – The Process of Programming 14
  • 15. In creating pseudocodes: Put computer commands on a line. A. True B. False 4/3/2020 M1 – The Process of Programming 15
  • 16. In creating pseudocodes, always start from top to bottom. A. True B. False 4/3/2020 M1 – The Process of Programming 16
  • 17. What is a flowchart? A. A text-based way of designing an algorithm B. A set of diagrams that represents a set of instructions 4/3/2020 M1 – The Process of Programming 17
  • 18. Which symbol do flowcharts begin with? A. Rectangle B. Circle C. Parallelogram D. Terminal 4/3/2020 M1 – The Process of Programming 18
  • 19. Which flowchart symbol represents input? A. Rectangle B. Circle C. Parallelogram D. Terminal (ovals or rectangles with rounded corners) 4/3/2020 M1 – The Process of Programming 19
  • 20. Which flowchart symbol represents condition? A. Rectangle B. Circle C. Parallelogram D. Diamond 4/3/2020 M1 – The Process of Programming 20
  • 21. Which flowchart symbol represents process statements? A. Rectangle B. Circle C. Parallelogram D. Diamond 4/3/2020 M1 – The Process of Programming 21
  • 22. Inside the process symbol of the flow chart, there can not be another flowchart, for modulization. A. True B. False 4/3/2020 M1 – The Process of Programming 22 START input Task(s) STOP Decision output Task(s)Task(s) START input Task(s) STOP Decision output Task(s)Task(s)
  • 23. How are symbols in a flowchart connected? A. Flowchart symbols do not get connected together B. With dashed lines and numbers C. With solid lines to link events D. With lines and arrow to show the flow and the direction 4/3/2020 M1 – The Process of Programming 23
  • 24. The process of programming involves defining program goals, designing pseudo codes or flow charts, and writing/validating program codes. A. True B. False 4/3/2020 M1 – The Process of Programming 24 I&DWP Algorithms (PC & FC) Statements (HTML, CSS, JS) Interpreter (browser) HINT
  • 25. The last step of programming process is for the browser engine to interprets the program codes for executions A. True B. False 4/3/2020 M1 – The Process of Programming 25
  • 26. Which of the followings are the 6 essential statements (aka IPO statements)? A. Input and Output B. Declaration and Assignment C. Decision and Loop D. None of the above 4/3/2020 M1 – The Process of Programming 26
  • 27. 4/3/2020 M1 – The Process of Programming 27 Algorithms Pseudo code & Flow Chart Statements HTML, CSS, JavaScript Interactive & Dynamic Web Page DESIGN AND WRITE CODES INTREPRET Browser The Process of Programming - The Takeaways For Human For Computer START input Task(s) STOP Decision output Task(s)Task(s) output The IPO Symbols The IPO statementsINPUT prompt, confirm OUTPUT alert, console.log DECLARATION var, let, const EXPRESSION assignment, operators DECISION if, switch LOOP while, for
  • 28. M1 – The Process of Programming Checkout 4/3/2020 28  GO TO DC Connect  Select CWMD-2601… SCRIPTING FOR DESIGN  Click “Content”  Under “Table of Contents”, select M1 – The process of programming  Select M1 Checklist  Check all those objectives are met, raise questions if not sure