SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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
 

Similar a Intro to Notation, Flowcharts and Pseudocode for Problem Solving

Similar a Intro to Notation, Flowcharts and Pseudocode for Problem Solving (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
 

Más 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
 

Más 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

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
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
 
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
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Último (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
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
 
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
 
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
 
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
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

Intro to Notation, Flowcharts and Pseudocode for Problem Solving

  • 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 del editor

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