SlideShare a Scribd company logo
1 of 34
James Tam
Agenda
1- warm up
2- presentation and asking questions essential questions and
other questions
3- Video + Q & A
4 – Exercises + walk through students
5- pictures and diagrams
6- video
7-Exit ticket
8- Home work
James Tam
Warm Up
Q1-Draw a diagrams which show the LAN , WAN and MAN?
And mention the differences between LAN , WAN and MAN ?
Q2-
Convert the decimal number (73) to its binary number?
Convert the decimal number (53) to its octal number?
Convert the binary number (1110110) to its decimal number?
Convert the octal number (1A5) to its decimal number?
James Tam
3
Network Addresses ***
An IP address can be split into
• network address, which specifies a specific network
• host number, which specifies a particular machine in that
network
Figure 15.9
An IP address is
stored in four
bytes
Warm Up what do you think about this slide
James Tam
Flowcharts
Draw a flowchart to convert
from decimal to binary .
Draw a Chart for adding 2
numbers and printing the
results .
http://www.stemassiut.info
James Tam
James Tam
Designing Software With
Flowcharts And Pseudo-code
In this section you will learn
two different ways of laying
out a computer algorithm
independent of programming
language
James Tam
A Model For Creating Computer Software
Specify the problem
Develop a design (algorithm)
Implement the design
Maintain the design
James Tam
What Is An Algorithm?
The steps needed to solve a
problem
Characteristics
•Specific
•Unambiguous ‫الغموض‬ ‫من‬ ‫خالية‬
•Language independent
James Tam
Developing An Algorithm: Top-Down Approach
General approach
Approach
to part of
problem
Specific
steps
Specific
steps
Specific
steps
Specific
steps
Approach
to part of
problem
Approach
to part of
problem
Abstract
Particular
Top
Bottom
Figure extracted from Computer Science
Illuminated by Dale N. and Lewis J.
The algorithm
James Tam
Techniques For Laying Out An Algorithm
Pseudo-code
Flowcharts
James Tam
Pseudo-Code
Employs 'programming-like' statements
to depict ‫تصف‬ the algorithm
No standard format (language
independent)
James Tam
Pseudo-Code Statements
Output
Input
Process
Decision
Repetition
Statements are carried out in order
Example: calling up a friend
1) Look up telephone number
2) Enter telephone number
3) Wait for someone to answer
: :
James Tam
Variables
Are symbols used to store values
The value stored can change
during the algorithm
James Tam
Student Engagement formula
Gn=Wn % Ng
Gn = Capstone Group number
Ng= total number of capstone groups in
Class
Wn= Week number in semester
% is the remainder operator
Write Pseudo-code and draw Flowcharts
James Tam
Pseudo-Code: Output
Used to display information
General format:
Line of text: Output 'Message'
Variable: Output Name of variable
Example
Output 'Available credit limit: ' limit
James Tam
Pseudo-Code: Input
Used to get information
Information is stored in a variable
General format:
Input: Name of variable
Example:
Input user_name
James Tam
Pseudo-Code: Process
For computer programs it's usually an
assignment statement (sets a variable to some
value)
General form:
variable arithmetic expression
Example:
x  2
x  x + 1
a  b * c
James Tam
Pseudo-Code: Decision Making
If-then
General form:
if (condition is met) then
statement(s)
Example:
if temperature < 0 then
wear a jacket
If-then-else
General form:
if (condition is met) then
statement(s)
else
statements(s)
James Tam
Pseudo-Code: Decision Making (2)
Example:
if (at work) then
Dress formally
else
Dress casually
James Tam
Pseudo-Code: Repetition
repeat-until
while-do
James Tam
Pseudo-Code: Repetition (2)
repeat-until
Repeat at least once (check condition after statement(s))
General form:
repeat
statement(s)
until (condition is met)
Example:
repeat
Go up to buffet table
until full
James Tam
Pseudo-Code: Repetition (3)
while-do
Repeat zero or more times (check condition before statement(s))
General form:
while (condition is met)
statement(s)
Example:
while students ask questions
Answer questions
James Tam
Listen to this video about how to draw flowchart
Listen to this video about flowchart
Off line
On line
23
James Tam
Pseudo-Code: Fast Food Example
Use pseudo-code to specify the
algorithm for a person who ordering
food at a fast food restaurant. At the
food counter, the person can either
order not order the following items:
a burger, fries and a drink. After
placing her order the person then
goes to the cashier.
James Tam
Pseudo-Code: ATM Example
Use pseudo-code to specify the
algorithm for an ATM bank machine.
The bank machine has four options: 1)
Show current balance 2) Deposit money
3) Withdraw money 4) Quit. After an
option has been selected, the ATM will
continue displaying the four options to
the person until he selects the option to
quit the ATM.
James Tam
Summary Of Pseudo-Code Statements
Statement Purpose
Output Display information
Input Get information
Process Perform an atomic (non-divisible) activity
Decision Choose between different alternatives
Repetition Perform a step multiple times
James Tam
Basic Flowcharts Element
Process
Input
Decision
Off page
Connector
Terminator
c
Arrow
Output
Variables
James Tam
Flowchart: Fast Food Example
Draw a flowchart to outline the algorithm for
a person who ordering food at a fast food
restaurant. At the food counter, the person
can either order not order the following
items: a burger, fries and a drink. After
placing her order the person then goes to the
cashier.
James Tam
Listen to this video about Animated
EDP Flow Chart
Listen to this video about flowchart
Off line
On line
38
James Tam
Flowchart: ATM Example
Draw a flowchart to outline the
algorithm for an ATM bank machine.
The bank machine has four options: 1)
Show current balance 2) Deposit money
3) Withdraw money 4) Quit. After an
option has been selected, the ATM will
continue displaying the four options to
the person until he selects the option to
quit the ATM.
James Tam
Summary
Laying out an algorithm using
flowcharts and pseudo-code
Learning basic elements of
algorithms:
•Input
•Output
•Decision-Making
•Repetition
•Processes
James Tam
Exit ticket
Draw a flow chart for reading 5
numbers then multiplying the first 3
numbers and sum the last 2
numbers then dividing the product
by the summation then printing the
results.
Write Pseudo-code of the previous
flowchart
James Tam
Home work
Search for flow chart
software application and
download it and use it for
drawing a flow chart for
dividing 2 numbers and
printing the results .
James Tam
References
https://www.edrawsoft.com/explain-
algorithm-flowchart.php
http://www.breezetree.com/article-
excel-flowchart-shapes.htm
https://www.geeksforgeeks.org/differ
ence-between-algorithm-
pseudocode-and-program/

More Related Content

What's hot

Fundamental Programming Lect 5
Fundamental Programming Lect 5Fundamental Programming Lect 5
Fundamental Programming Lect 5Namrah Erum
 
Online algorithms in Machine Learning
Online algorithms in Machine LearningOnline algorithms in Machine Learning
Online algorithms in Machine LearningAmrinder Arora
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmDHANIK VIKRANT
 
Fundamental Programming Lect 4
Fundamental Programming Lect 4Fundamental Programming Lect 4
Fundamental Programming Lect 4Namrah Erum
 
Dynamic Programming: Smith-Waterman
Dynamic Programming: Smith-WatermanDynamic Programming: Smith-Waterman
Dynamic Programming: Smith-WatermanRohan Prakash
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow chartsPraveen M Jigajinni
 
Understanding computer vision with Deep Learning
Understanding computer vision with Deep LearningUnderstanding computer vision with Deep Learning
Understanding computer vision with Deep LearningShubhWadekar
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01abdalodainat
 
Basic Algorithm @PPSC(1)
Basic Algorithm @PPSC(1)Basic Algorithm @PPSC(1)
Basic Algorithm @PPSC(1)Amiya Bhusan
 
Programming flowcharts for C Language
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C LanguageAryan Ajmer
 
Itc lec5-24+sep+2012
Itc lec5-24+sep+2012Itc lec5-24+sep+2012
Itc lec5-24+sep+2012Rehan Qadri
 
Dynamic programming 2
Dynamic programming 2Dynamic programming 2
Dynamic programming 2Roy Thomas
 
Elements of Dynamic Programming
Elements of Dynamic ProgrammingElements of Dynamic Programming
Elements of Dynamic ProgrammingVishwajeet Shabadi
 
A Comparison of Loss Function on Deep Embedding
A Comparison of Loss Function on Deep EmbeddingA Comparison of Loss Function on Deep Embedding
A Comparison of Loss Function on Deep EmbeddingCenk Bircanoğlu
 
Microsoft PowerPoint - Chapter01
Microsoft PowerPoint - Chapter01Microsoft PowerPoint - Chapter01
Microsoft PowerPoint - Chapter01butest
 

What's hot (19)

Fundamental Programming Lect 5
Fundamental Programming Lect 5Fundamental Programming Lect 5
Fundamental Programming Lect 5
 
Online algorithms in Machine Learning
Online algorithms in Machine LearningOnline algorithms in Machine Learning
Online algorithms in Machine Learning
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Fundamental Programming Lect 4
Fundamental Programming Lect 4Fundamental Programming Lect 4
Fundamental Programming Lect 4
 
Dynamic Programming: Smith-Waterman
Dynamic Programming: Smith-WatermanDynamic Programming: Smith-Waterman
Dynamic Programming: Smith-Waterman
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow charts
 
Flowchart
FlowchartFlowchart
Flowchart
 
Understanding computer vision with Deep Learning
Understanding computer vision with Deep LearningUnderstanding computer vision with Deep Learning
Understanding computer vision with Deep Learning
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01
 
Basic Algorithm @PPSC(1)
Basic Algorithm @PPSC(1)Basic Algorithm @PPSC(1)
Basic Algorithm @PPSC(1)
 
Flowchart Grade 10
Flowchart Grade 10Flowchart Grade 10
Flowchart Grade 10
 
Programming flowcharts for C Language
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C Language
 
Itc lec5-24+sep+2012
Itc lec5-24+sep+2012Itc lec5-24+sep+2012
Itc lec5-24+sep+2012
 
Dynamic programming 2
Dynamic programming 2Dynamic programming 2
Dynamic programming 2
 
Elements of Dynamic Programming
Elements of Dynamic ProgrammingElements of Dynamic Programming
Elements of Dynamic Programming
 
Cs 1114 - lecture-3
Cs 1114 - lecture-3Cs 1114 - lecture-3
Cs 1114 - lecture-3
 
A Comparison of Loss Function on Deep Embedding
A Comparison of Loss Function on Deep EmbeddingA Comparison of Loss Function on Deep Embedding
A Comparison of Loss Function on Deep Embedding
 
Microsoft PowerPoint - Chapter01
Microsoft PowerPoint - Chapter01Microsoft PowerPoint - Chapter01
Microsoft PowerPoint - Chapter01
 

Similar to Design pseudo codeweek 6 2019 -2020

CP4151 ADSA unit1 Advanced Data Structures and Algorithms
CP4151 ADSA unit1 Advanced Data Structures and AlgorithmsCP4151 ADSA unit1 Advanced Data Structures and Algorithms
CP4151 ADSA unit1 Advanced Data Structures and AlgorithmsSheba41
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
AOA Week 01.ppt
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.pptINAM352782
 
Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Shipra Swati
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchartfika sweety
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSESujata Regoti
 
Intake 38 data access 3
Intake 38 data access 3Intake 38 data access 3
Intake 38 data access 3Mahmoud Ouf
 
Vba and macro creation (using excel)
Vba and macro creation (using excel)Vba and macro creation (using excel)
Vba and macro creation (using excel)Javier Morales Cauna
 
Programming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxProgramming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxSONU KUMAR
 
CSF Tips and Tricks 8MS Webinar
CSF Tips and Tricks 8MS WebinarCSF Tips and Tricks 8MS Webinar
CSF Tips and Tricks 8MS WebinarAerialink
 
Informatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guideInformatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guideDhanasekar T
 

Similar to Design pseudo codeweek 6 2019 -2020 (20)

Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
ALGO.ppt
ALGO.pptALGO.ppt
ALGO.ppt
 
CP4151 ADSA unit1 Advanced Data Structures and Algorithms
CP4151 ADSA unit1 Advanced Data Structures and AlgorithmsCP4151 ADSA unit1 Advanced Data Structures and Algorithms
CP4151 ADSA unit1 Advanced Data Structures and Algorithms
 
Aocr Hmm Presentation
Aocr Hmm PresentationAocr Hmm Presentation
Aocr Hmm Presentation
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
AOA Week 01.ppt
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.ppt
 
Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSE
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
C notes for exam preparation
C notes for exam preparationC notes for exam preparation
C notes for exam preparation
 
Savitch ch 02
Savitch ch 02Savitch ch 02
Savitch ch 02
 
Intake 38 data access 3
Intake 38 data access 3Intake 38 data access 3
Intake 38 data access 3
 
Vba and macro creation (using excel)
Vba and macro creation (using excel)Vba and macro creation (using excel)
Vba and macro creation (using excel)
 
Programming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxProgramming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptx
 
CSF Tips and Tricks 8MS Webinar
CSF Tips and Tricks 8MS WebinarCSF Tips and Tricks 8MS Webinar
CSF Tips and Tricks 8MS Webinar
 
Informatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guideInformatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guide
 

More from Osama Ghandour Geris

functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...Osama Ghandour Geris
 
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.pptPython week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.pptOsama Ghandour Geris
 
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansourPython cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansourOsama Ghandour Geris
 
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandourPython cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10Osama Ghandour Geris
 
Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10 Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10 Osama Ghandour Geris
 
Python week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandourPython week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Python week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandourPython week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Programming intro variables constants - arithmetic and assignment operators
Programming intro variables   constants - arithmetic and assignment operatorsProgramming intro variables   constants - arithmetic and assignment operators
Programming intro variables constants - arithmetic and assignment operatorsOsama Ghandour Geris
 
Mobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osamaMobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osamaOsama Ghandour Geris
 
Css week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandourCss week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandourOsama Ghandour Geris
 
How to print a sketch up drawing in 3d
How to print a sketch up drawing  in 3dHow to print a sketch up drawing  in 3d
How to print a sketch up drawing in 3dOsama Ghandour Geris
 
7 types of presentation styles on line
7 types of presentation styles on line7 types of presentation styles on line
7 types of presentation styles on lineOsama Ghandour Geris
 

More from Osama Ghandour Geris (20)

functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
 
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.pptPython week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
 
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansourPython cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
 
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandourPython cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
 
Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10
 
Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10 Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10
 
Python week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandourPython week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandour
 
Python week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandourPython week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandour
 
Programming intro variables constants - arithmetic and assignment operators
Programming intro variables   constants - arithmetic and assignment operatorsProgramming intro variables   constants - arithmetic and assignment operators
Programming intro variables constants - arithmetic and assignment operators
 
Mobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osamaMobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osama
 
Python week 1 2020-2021
Python week 1 2020-2021Python week 1 2020-2021
Python week 1 2020-2021
 
6 css week12 2020 2021 for g10
6 css week12 2020 2021 for g106 css week12 2020 2021 for g10
6 css week12 2020 2021 for g10
 
Css week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandourCss week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandour
 
Cooding history
Cooding history Cooding history
Cooding history
 
Computer networks--network
Computer networks--networkComputer networks--network
Computer networks--network
 
How to print a sketch up drawing in 3d
How to print a sketch up drawing  in 3dHow to print a sketch up drawing  in 3d
How to print a sketch up drawing in 3d
 
Google sketch up-tutorial
Google sketch up-tutorialGoogle sketch up-tutorial
Google sketch up-tutorial
 
7 types of presentation styles on line
7 types of presentation styles on line7 types of presentation styles on line
7 types of presentation styles on line
 
Php introduction
Php introductionPhp introduction
Php introduction
 
How to use common app
How to use common appHow to use common app
How to use common app
 

Recently uploaded

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

Design pseudo codeweek 6 2019 -2020

  • 1. James Tam Agenda 1- warm up 2- presentation and asking questions essential questions and other questions 3- Video + Q & A 4 – Exercises + walk through students 5- pictures and diagrams 6- video 7-Exit ticket 8- Home work
  • 2. James Tam Warm Up Q1-Draw a diagrams which show the LAN , WAN and MAN? And mention the differences between LAN , WAN and MAN ? Q2- Convert the decimal number (73) to its binary number? Convert the decimal number (53) to its octal number? Convert the binary number (1110110) to its decimal number? Convert the octal number (1A5) to its decimal number?
  • 3. James Tam 3 Network Addresses *** An IP address can be split into • network address, which specifies a specific network • host number, which specifies a particular machine in that network Figure 15.9 An IP address is stored in four bytes Warm Up what do you think about this slide
  • 4. James Tam Flowcharts Draw a flowchart to convert from decimal to binary . Draw a Chart for adding 2 numbers and printing the results . http://www.stemassiut.info
  • 6. James Tam Designing Software With Flowcharts And Pseudo-code In this section you will learn two different ways of laying out a computer algorithm independent of programming language
  • 7. James Tam A Model For Creating Computer Software Specify the problem Develop a design (algorithm) Implement the design Maintain the design
  • 8. James Tam What Is An Algorithm? The steps needed to solve a problem Characteristics •Specific •Unambiguous ‫الغموض‬ ‫من‬ ‫خالية‬ •Language independent
  • 9. James Tam Developing An Algorithm: Top-Down Approach General approach Approach to part of problem Specific steps Specific steps Specific steps Specific steps Approach to part of problem Approach to part of problem Abstract Particular Top Bottom Figure extracted from Computer Science Illuminated by Dale N. and Lewis J. The algorithm
  • 10. James Tam Techniques For Laying Out An Algorithm Pseudo-code Flowcharts
  • 11. James Tam Pseudo-Code Employs 'programming-like' statements to depict ‫تصف‬ the algorithm No standard format (language independent)
  • 12. James Tam Pseudo-Code Statements Output Input Process Decision Repetition Statements are carried out in order Example: calling up a friend 1) Look up telephone number 2) Enter telephone number 3) Wait for someone to answer : :
  • 13. James Tam Variables Are symbols used to store values The value stored can change during the algorithm
  • 14. James Tam Student Engagement formula Gn=Wn % Ng Gn = Capstone Group number Ng= total number of capstone groups in Class Wn= Week number in semester % is the remainder operator Write Pseudo-code and draw Flowcharts
  • 15. James Tam Pseudo-Code: Output Used to display information General format: Line of text: Output 'Message' Variable: Output Name of variable Example Output 'Available credit limit: ' limit
  • 16. James Tam Pseudo-Code: Input Used to get information Information is stored in a variable General format: Input: Name of variable Example: Input user_name
  • 17. James Tam Pseudo-Code: Process For computer programs it's usually an assignment statement (sets a variable to some value) General form: variable arithmetic expression Example: x  2 x  x + 1 a  b * c
  • 18. James Tam Pseudo-Code: Decision Making If-then General form: if (condition is met) then statement(s) Example: if temperature < 0 then wear a jacket If-then-else General form: if (condition is met) then statement(s) else statements(s)
  • 19. James Tam Pseudo-Code: Decision Making (2) Example: if (at work) then Dress formally else Dress casually
  • 21. James Tam Pseudo-Code: Repetition (2) repeat-until Repeat at least once (check condition after statement(s)) General form: repeat statement(s) until (condition is met) Example: repeat Go up to buffet table until full
  • 22. James Tam Pseudo-Code: Repetition (3) while-do Repeat zero or more times (check condition before statement(s)) General form: while (condition is met) statement(s) Example: while students ask questions Answer questions
  • 23. James Tam Listen to this video about how to draw flowchart Listen to this video about flowchart Off line On line 23
  • 24. James Tam Pseudo-Code: Fast Food Example Use pseudo-code to specify the algorithm for a person who ordering food at a fast food restaurant. At the food counter, the person can either order not order the following items: a burger, fries and a drink. After placing her order the person then goes to the cashier.
  • 25. James Tam Pseudo-Code: ATM Example Use pseudo-code to specify the algorithm for an ATM bank machine. The bank machine has four options: 1) Show current balance 2) Deposit money 3) Withdraw money 4) Quit. After an option has been selected, the ATM will continue displaying the four options to the person until he selects the option to quit the ATM.
  • 26. James Tam Summary Of Pseudo-Code Statements Statement Purpose Output Display information Input Get information Process Perform an atomic (non-divisible) activity Decision Choose between different alternatives Repetition Perform a step multiple times
  • 27. James Tam Basic Flowcharts Element Process Input Decision Off page Connector Terminator c Arrow Output Variables
  • 28. James Tam Flowchart: Fast Food Example Draw a flowchart to outline the algorithm for a person who ordering food at a fast food restaurant. At the food counter, the person can either order not order the following items: a burger, fries and a drink. After placing her order the person then goes to the cashier.
  • 29. James Tam Listen to this video about Animated EDP Flow Chart Listen to this video about flowchart Off line On line 38
  • 30. James Tam Flowchart: ATM Example Draw a flowchart to outline the algorithm for an ATM bank machine. The bank machine has four options: 1) Show current balance 2) Deposit money 3) Withdraw money 4) Quit. After an option has been selected, the ATM will continue displaying the four options to the person until he selects the option to quit the ATM.
  • 31. James Tam Summary Laying out an algorithm using flowcharts and pseudo-code Learning basic elements of algorithms: •Input •Output •Decision-Making •Repetition •Processes
  • 32. James Tam Exit ticket Draw a flow chart for reading 5 numbers then multiplying the first 3 numbers and sum the last 2 numbers then dividing the product by the summation then printing the results. Write Pseudo-code of the previous flowchart
  • 33. James Tam Home work Search for flow chart software application and download it and use it for drawing a flow chart for dividing 2 numbers and printing the results .