SlideShare uma empresa Scribd logo
1 de 18
Class 7 – Intro to Notation, Flowcharts and Pseudocode
Agenda
 Process development
 Algorithmic approaches to problem-solving
 Pseudocode
 Algorithm Structure
 Flowcharting
 Application
 Project Development
What is a Process?
 Discuss: what is a process?
 What are some examples of processes you
encounter in your day-to-day routine?
 How can you describe a process
 What are the important criterion and
parameters of a process?
 Exercise 7-1: What is a Process?
Process Debrief
 What issues occurred in developing your
process?
 What important considerations were
necessary?
 What elements are common to the various
processes described?
 What elements were unique?
Process as Problem-Solving
 ALGORITHMIC SOLUTIONS
 some problems such as baking a cake, or balancing a
cheque book can be solved with a concise set of
instructions or actions
 HEURISITIC SOLUTIONS
 some problems aren’t so straight forward and rely heavily
on knowledge and experience; i.e. whether to expand a
company; how to best buy stocks on the stock market, etc.
 heavily reliant on the process of trial and error and cannot
be reached by a series of direct steps
Algorithmic Solutions
 An ALGORITHM is a set of precise steps that
describe exactly the tasks to be performed,
and the order in which they are to be carried
out
 It can be defined in programming terms as a
set of detailed, unambiguous and ordered
instructions, developed to describe the
processes necessary to produce the desired
output from a given input
 Algorithms may be described in structured
language or graphically
Algorithm Approaches
 IPO
 Input
 Processing
 Output
 Expanded IPO
 Includes Problem Statement
 Risk – certainty & uncertainty
 Approach
 Diagram
 Testing Options
 Pseudo-code – structured syntax
Pseudocode
 Pseudo-code is structured English that
states the steps to the problem solution
1. Statements are written in simple English
2. Each instruction/step is written on a separate
line
3. Keywords and indentation are used to signify
particular control structures
4. Each set of instructions is written from top to
bottom, with only one entry and one exit
Sample Pseudocode
# Start Program
# Prompt for Assignment Name
# Get Assignment Name and assign to variable
# Loop through Student 1-12
# prompt for grade
# get grade and assign to variable
# End Loop when 12 student grades are entered
# Calculate Average and assign to variable
# If the average is greater than 75%
# msg is “Well Done”
# Else
# msg is “Oh, oh!”
# End if
# Compose the output string
# Send the formatted output to the screen
# End Program
Structure Theorem
 The theorem states that it is possible to
write any computer program by using
only three basic control structures
 These control structures are:
 Sequence (order of steps)
 Selection, or conditional (if-else-then)
 Repetition, or iteration (for-next)
IPO and Pseudocode
Practice Pseudocode
 Exercise 7-2
 Code an algorithm
 using pseudocode
 using Ruby notation, and
 appropriate indentation
 Exercise 7-3
 If time allows
Flowcharting
 A graphical representation of program logic
using a series of geometric symbols and
connecting lines
 Flowcharts are relatively easy to learn and are
intuitive
 Help to identify flow of data
 Track variables through the life of the
application
Flow Chart Notation
 Terminal symbol- indicates the starting
or stopping point of logic:
 Input/Output symbol- reading or
writing input/output:
 Process Symbol- any single process,
such as assigning a value or performing
a calculation:
 Decision Symbol- comparisons/ T or F decision:
 Flowlines- connect symbols in the flowchart:
 arrow head suggests flow of data
 a straight line may be used to indicate a relationship
Sample FlowChart
 Pseudocode
 Start Program
 Prompt for assignment
 Loop through grades
 Get student grade
 Increment counter
 End loop
 Calculate Average
 Print Average
 End Program
start
end
Assignment
name?
Set counter = 1
Counter>10?
Calculate Average
Print
Average
Increment Counter
Student
Grade? Yes
No
Flowchart Practice
 Develop Flowchart for the last pseudocode
exercise
 Notes:
 Pseudocode often follows the development of a
flowchart
 Some applications are developed to generate code or
pseudocode based on a work flow or flow chart
 Application flowcharts are often very complex
 Please ensure future Ruby solutions are properly
documented with pseudocode notation (# plus
indentation)
Application
 Project Work
 Begin to develop your project flowchart and
pseudocode
Summary
 Process
 Algorithm and structure
 Notation
 Pseudocode
 Flowchart
 Next steps
 Refine your notation for Project 1

Mais conteúdo relacionado

Mais procurados

Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Raja Hamid
 
Software develop....
Software develop.... Software develop....
Software develop.... GCWUS
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1Namrah Erum
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life CycleFrankie Jones
 
Fundamental Programming Lect 3
Fundamental Programming Lect 3Fundamental Programming Lect 3
Fundamental Programming Lect 3Namrah Erum
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer Ashim Lamichhane
 
Fundamental Programming Lect 5
Fundamental Programming Lect 5Fundamental Programming Lect 5
Fundamental Programming Lect 5Namrah Erum
 
Fundamental Programming Lect 4
Fundamental Programming Lect 4Fundamental Programming Lect 4
Fundamental Programming Lect 4Namrah Erum
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CPrabu U
 
Algorithm & flowchart
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchartsaurabh sen sky
 
Steps for Developing a 'C' program
 Steps for Developing a 'C' program Steps for Developing a 'C' program
Steps for Developing a 'C' programSahithi Naraparaju
 
Problem solving (C++ Programming)
Problem solving (C++ Programming)Problem solving (C++ Programming)
Problem solving (C++ Programming)Umair Younas
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow chartsChinnu Edwin
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programraksharao
 

Mais procurados (20)

Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
 
Introduction to problem solving in C
Introduction to problem solving in CIntroduction to problem solving in C
Introduction to problem solving in C
 
Software develop....
Software develop.... Software develop....
Software develop....
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle
 
Fundamental Programming Lect 3
Fundamental Programming Lect 3Fundamental Programming Lect 3
Fundamental Programming Lect 3
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
 
Fundamental Programming Lect 5
Fundamental Programming Lect 5Fundamental Programming Lect 5
Fundamental Programming Lect 5
 
Fundamental Programming Lect 4
Fundamental Programming Lect 4Fundamental Programming Lect 4
Fundamental Programming Lect 4
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
Algorithm & flowchart
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchart
 
Steps for Developing a 'C' program
 Steps for Developing a 'C' program Steps for Developing a 'C' program
Steps for Developing a 'C' program
 
Problem solving (C++ Programming)
Problem solving (C++ Programming)Problem solving (C++ Programming)
Problem solving (C++ Programming)
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
 
Programming and problem solving with c++, 3rd edition
Programming and problem solving with c++, 3rd editionProgramming and problem solving with c++, 3rd edition
Programming and problem solving with c++, 3rd edition
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 

Destaque

MCQ's for class 7th
MCQ's for class 7thMCQ's for class 7th
MCQ's for class 7thAsad Shafat
 
Math class 7 Chapter 5
Math class 7 Chapter 5Math class 7 Chapter 5
Math class 7 Chapter 5Tanvir Ahamed
 
Final examination 2011 class vii
Final examination 2011 class viiFinal examination 2011 class vii
Final examination 2011 class viiAsad Shafat
 
Final examination 2011 class viii
Final examination 2011 class viiiFinal examination 2011 class viii
Final examination 2011 class viiiAsad Shafat
 
Class 7 bangladesh & global studies capter 2 class 6
Class 7 bangladesh & global studies capter 2 class 6Class 7 bangladesh & global studies capter 2 class 6
Class 7 bangladesh & global studies capter 2 class 6Cambriannews
 
Class 8 english 1st paper at the airport lesson-1
Class 8 english 1st paper at the airport  lesson-1Class 8 english 1st paper at the airport  lesson-1
Class 8 english 1st paper at the airport lesson-1Abdulláh Mámun
 
Chapter2 International Finance Management
Chapter2 International Finance ManagementChapter2 International Finance Management
Chapter2 International Finance ManagementPiyush Gaur
 

Destaque (15)

MCQ's for class 7th
MCQ's for class 7thMCQ's for class 7th
MCQ's for class 7th
 
Math class 7 Chapter 5
Math class 7 Chapter 5Math class 7 Chapter 5
Math class 7 Chapter 5
 
Final examination 2011 class vii
Final examination 2011 class viiFinal examination 2011 class vii
Final examination 2011 class vii
 
Final examination 2011 class viii
Final examination 2011 class viiiFinal examination 2011 class viii
Final examination 2011 class viii
 
Class 7 bangladesh & global studies capter 2 class 6
Class 7 bangladesh & global studies capter 2 class 6Class 7 bangladesh & global studies capter 2 class 6
Class 7 bangladesh & global studies capter 2 class 6
 
Class 6a ruby math
Class 6a   ruby mathClass 6a   ruby math
Class 6a ruby math
 
Class 8 english 1st paper at the airport lesson-1
Class 8 english 1st paper at the airport  lesson-1Class 8 english 1st paper at the airport  lesson-1
Class 8 english 1st paper at the airport lesson-1
 
Secondary computer and information tanbircox
Secondary computer and information tanbircoxSecondary computer and information tanbircox
Secondary computer and information tanbircox
 
Chapter2 International Finance Management
Chapter2 International Finance ManagementChapter2 International Finance Management
Chapter2 International Finance Management
 
3000+ english grammar tests and exercises
3000+ english grammar tests and exercises3000+ english grammar tests and exercises
3000+ english grammar tests and exercises
 
Jsc latest math complete solution guide tanbircox
Jsc latest math complete solution guide tanbircoxJsc latest math complete solution guide tanbircox
Jsc latest math complete solution guide tanbircox
 
Easiest and efficient methods of spoken english
Easiest and efficient methods of spoken englishEasiest and efficient methods of spoken english
Easiest and efficient methods of spoken english
 
Health benefits and medicinal properties of bd fruits
Health benefits and medicinal properties of bd fruitsHealth benefits and medicinal properties of bd fruits
Health benefits and medicinal properties of bd fruits
 
Saltamami 2016 by tanbircox
Saltamami 2016 by tanbircoxSaltamami 2016 by tanbircox
Saltamami 2016 by tanbircox
 
Sahih bukhari shareef bangla unicode text
Sahih bukhari shareef bangla unicode textSahih bukhari shareef bangla unicode text
Sahih bukhari shareef bangla unicode text
 

Semelhante a Class 7 lecture notes

Semelhante a Class 7 lecture notes (20)

Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
 
Algorithms and Flowchart.ppt
Algorithms and Flowchart.pptAlgorithms and Flowchart.ppt
Algorithms and Flowchart.ppt
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
DISE - Programming Concepts
DISE - Programming ConceptsDISE - Programming Concepts
DISE - Programming Concepts
 
Cse
CseCse
Cse
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
La5 Basicelement
La5 BasicelementLa5 Basicelement
La5 Basicelement
 
Program logic and design
Program logic and designProgram logic and design
Program logic and design
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
Copy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designCopy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program design
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Debbuging
DebbugingDebbuging
Debbuging
 
10 lesson8
10 lesson810 lesson8
10 lesson8
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
MPP-UPNVJ
MPP-UPNVJMPP-UPNVJ
MPP-UPNVJ
 

Mais de Stephen Parsons

Atlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyAtlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyStephen Parsons
 
Chairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMChairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMStephen Parsons
 
Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Stephen Parsons
 
Class 6 truth tables and boolean math
Class 6   truth tables and boolean mathClass 6   truth tables and boolean math
Class 6 truth tables and boolean mathStephen Parsons
 
Class 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsClass 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsStephen Parsons
 
Class 4 IPO and Intro to Ruby
Class 4 IPO and Intro to RubyClass 4 IPO and Intro to Ruby
Class 4 IPO and Intro to RubyStephen Parsons
 
Class 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalClass 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalStephen Parsons
 
Class 1 introduction to logic & problem solving
Class 1   introduction to logic & problem solvingClass 1   introduction to logic & problem solving
Class 1 introduction to logic & problem solvingStephen Parsons
 
Portfolio Of A Community
Portfolio Of A CommunityPortfolio Of A Community
Portfolio Of A CommunityStephen Parsons
 
Cause & effect analysis part 2
Cause & effect analysis part 2Cause & effect analysis part 2
Cause & effect analysis part 2Stephen Parsons
 
Cause & effect analysis part 1
Cause & effect analysis part 1Cause & effect analysis part 1
Cause & effect analysis part 1Stephen Parsons
 

Mais de Stephen Parsons (18)

Atlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyAtlantic Woodworkers Website Strategy
Atlantic Woodworkers Website Strategy
 
Chairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMChairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGM
 
Class 10 Arrays
Class 10 ArraysClass 10 Arrays
Class 10 Arrays
 
Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11
 
Class 6 truth tables and boolean math
Class 6   truth tables and boolean mathClass 6   truth tables and boolean math
Class 6 truth tables and boolean math
 
Class 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsClass 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn Diagrams
 
Class 4 IPO and Intro to Ruby
Class 4 IPO and Intro to RubyClass 4 IPO and Intro to Ruby
Class 4 IPO and Intro to Ruby
 
Class 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalClass 3 Binary & Hexadecimal
Class 3 Binary & Hexadecimal
 
Class 2 Math I
Class 2 Math IClass 2 Math I
Class 2 Math I
 
Class 1 introduction to logic & problem solving
Class 1   introduction to logic & problem solvingClass 1   introduction to logic & problem solving
Class 1 introduction to logic & problem solving
 
Portfolio Of A Community
Portfolio Of A CommunityPortfolio Of A Community
Portfolio Of A Community
 
Cause & effect analysis part 2
Cause & effect analysis part 2Cause & effect analysis part 2
Cause & effect analysis part 2
 
Cause & effect analysis part 1
Cause & effect analysis part 1Cause & effect analysis part 1
Cause & effect analysis part 1
 
Class 11 lecture notes
Class 11 lecture notesClass 11 lecture notes
Class 11 lecture notes
 
Class 10 Lecture Notes
Class 10  Lecture  NotesClass 10  Lecture  Notes
Class 10 Lecture Notes
 
Class 9 Lecture Notes
Class 9 Lecture NotesClass 9 Lecture Notes
Class 9 Lecture Notes
 
Class 8 Lecture Notes
Class 8 Lecture NotesClass 8 Lecture Notes
Class 8 Lecture Notes
 
Deck Project Phase II
Deck Project Phase IIDeck Project Phase II
Deck Project Phase II
 

Último

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 

Último (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Class 7 lecture notes

  • 1. Class 7 – Intro to Notation, Flowcharts and Pseudocode
  • 2. Agenda  Process development  Algorithmic approaches to problem-solving  Pseudocode  Algorithm Structure  Flowcharting  Application  Project Development
  • 3. What is a Process?  Discuss: what is a process?  What are some examples of processes you encounter in your day-to-day routine?  How can you describe a process  What are the important criterion and parameters of a process?  Exercise 7-1: What is a Process?
  • 4. Process Debrief  What issues occurred in developing your process?  What important considerations were necessary?  What elements are common to the various processes described?  What elements were unique?
  • 5. Process as Problem-Solving  ALGORITHMIC SOLUTIONS  some problems such as baking a cake, or balancing a cheque book can be solved with a concise set of instructions or actions  HEURISITIC SOLUTIONS  some problems aren’t so straight forward and rely heavily on knowledge and experience; i.e. whether to expand a company; how to best buy stocks on the stock market, etc.  heavily reliant on the process of trial and error and cannot be reached by a series of direct steps
  • 6. Algorithmic Solutions  An ALGORITHM is a set of precise steps that describe exactly the tasks to be performed, and the order in which they are to be carried out  It can be defined in programming terms as a set of detailed, unambiguous and ordered instructions, developed to describe the processes necessary to produce the desired output from a given input  Algorithms may be described in structured language or graphically
  • 7. Algorithm Approaches  IPO  Input  Processing  Output  Expanded IPO  Includes Problem Statement  Risk – certainty & uncertainty  Approach  Diagram  Testing Options  Pseudo-code – structured syntax
  • 8. Pseudocode  Pseudo-code is structured English that states the steps to the problem solution 1. Statements are written in simple English 2. Each instruction/step is written on a separate line 3. Keywords and indentation are used to signify particular control structures 4. Each set of instructions is written from top to bottom, with only one entry and one exit
  • 9. Sample Pseudocode # Start Program # Prompt for Assignment Name # Get Assignment Name and assign to variable # Loop through Student 1-12 # prompt for grade # get grade and assign to variable # End Loop when 12 student grades are entered # Calculate Average and assign to variable # If the average is greater than 75% # msg is “Well Done” # Else # msg is “Oh, oh!” # End if # Compose the output string # Send the formatted output to the screen # End Program
  • 10. Structure Theorem  The theorem states that it is possible to write any computer program by using only three basic control structures  These control structures are:  Sequence (order of steps)  Selection, or conditional (if-else-then)  Repetition, or iteration (for-next)
  • 12. Practice Pseudocode  Exercise 7-2  Code an algorithm  using pseudocode  using Ruby notation, and  appropriate indentation  Exercise 7-3  If time allows
  • 13. Flowcharting  A graphical representation of program logic using a series of geometric symbols and connecting lines  Flowcharts are relatively easy to learn and are intuitive  Help to identify flow of data  Track variables through the life of the application
  • 14. Flow Chart Notation  Terminal symbol- indicates the starting or stopping point of logic:  Input/Output symbol- reading or writing input/output:  Process Symbol- any single process, such as assigning a value or performing a calculation:  Decision Symbol- comparisons/ T or F decision:  Flowlines- connect symbols in the flowchart:  arrow head suggests flow of data  a straight line may be used to indicate a relationship
  • 15. Sample FlowChart  Pseudocode  Start Program  Prompt for assignment  Loop through grades  Get student grade  Increment counter  End loop  Calculate Average  Print Average  End Program start end Assignment name? Set counter = 1 Counter>10? Calculate Average Print Average Increment Counter Student Grade? Yes No
  • 16. Flowchart Practice  Develop Flowchart for the last pseudocode exercise  Notes:  Pseudocode often follows the development of a flowchart  Some applications are developed to generate code or pseudocode based on a work flow or flow chart  Application flowcharts are often very complex  Please ensure future Ruby solutions are properly documented with pseudocode notation (# plus indentation)
  • 17. Application  Project Work  Begin to develop your project flowchart and pseudocode
  • 18. Summary  Process  Algorithm and structure  Notation  Pseudocode  Flowchart  Next steps  Refine your notation for Project 1

Notas do Editor

  1. Algorithms may be described in structured language or graphically
  2. Programmatic Algorithms will be interested in efficiency and effectiveness – elegance