Problem Solving: Algorithms and Flowcharts By Dr. Gabriel.

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

1 ©2006 INSciTE Lab One Task: Move forward for 5 rotations and return Then try: Move forward for 5 rotations, turn right 90º.
Introduction to Programming
How To Make Fried Rice By: Steven Lai Safety Precautions Make sure you have adult supervision You will be using knives which can cut you and stoves which.
COMPUTER PROGRAMMING I Understand Problem Solving Tools to Design Programming Solutions.
Recipes. Tiramisu Strawberry Pudding Fried rice French toast.
Flow Control Analysis & Design Tool: Flowcharts
Creating Flowcharts Principles Of Engineering
Algorithms and flow charts
Basics of Computer Programming Web Design Section 8-1.
Flow Chart.
* Example How to Make Sandwich Materials 1.Two breads 2.Strawberry jam 3.Tomatoes 4.Lettuce 5.Fried cornet.
Spanish Omelette.
HOW TO Make a chocolate cake… Molly K and Andrew W Mrs. Gaspari English February 2012.
Flowcharts Remember that a solution to a problem is called an algorithm. Algorithms are often a series of steps required to solve the problem. A flowchart.
Modeling the Processes and Logic
The Program Design Phases
PRE-PROGRAMMING PHASE
Algorithms and flow charts
ALGORITHMS AND FLOW CHARTS 1 Adapted from the slides Prepared by Department of Preparatory year Prepared by: lec. Ghader Kurdi.
 A data flow diagram ( DFD ) is a graphical representation of the "flow" of data through an information system.  A data flow diagram can also be used.
Original Source : and Problem and Problem Solving.ppt.
How to Make Grilled Cheese By: Jimmy Wills. Preparation- What You’ll Need Utensils: Pan Spatula Plate (optional, but recommended) Ingredients Bread Cheese.
GRILLED CHEESE SANDWICH Goal to make grilled cheese sandwich.
How to make a pancake By Sophie Draper. Ingredients: Frying pan Large Mixing Bowl Long handled spatula Mixing Spoon 2 Eggs 2 cups of flour 2 ¾ cups of.
By A Group Making pancakes a visual diary. Firstly we had to find a recipe for pancakes. We searched on Google and found one on It.
A 1-Day Meal for Lactose Intolerants Reuben Tan, Shaun Lee Qin Jue Hang & Cheng Herng Yi.
FRIED EGGS © PDST Home Economics. FRYING IS COOKING FOOD IN HOT FAT ON A FRYING PAN.
C++ If….Else Statements and Flowcharts October 10, 2007.
ENGR 1181 College of Engineering Engineering Education Innovation Center MAT – Program Design.
Chapter 2 - Algorithms and Design
How to make apple pie Prepared by Anastasiya Samoylovych Anastasiya Samoylovych.
Chapter 4 Inequalities 4.1 Inequalities and Their Graphs.
Context Diagrams. What are dataflow diagrams used for? Dataflow diagram  A graphical representation that depicts information flow and the transforms.
1 ©2006 INSciTE Problem Solving. 2 ©2006 INSciTE Generic Problem Solving Process Define the problem Brainstorm solutions Evaluate solutions Pick one Try.
Lecture 2: Logical Problems with Choices. Problem Solving Before writing a program Have a thorough understanding of the problem Carefully plan an approach.
Flowcharts.
Chapter 2: General Problem Solving Concepts
Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to.
Dale Roberts 1 Program Control - Algorithms Department of Computer and Information Science, School of Science, IUPUI CSCI N305.
JAVIER ROJO 1ºB. 4 potatoes A glass of olive oil Some salt 4 eggs 1 onion.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
Flowcharting An Introduction. Definition A flowchart is a schematic representation of an algorithm or a process.
Faculty of Sciences and Social Sciences HOPE Structured Problem Solving Week 3: Algorithms Stewart Blakeway FML 213
How to Cook a Fried Egg. How to Cook a Fried Egg.
Visual Basic Flowcharts October 10, Turn in your vocabulary words before you leave!
FLOWCHARTING AND ALGORITHMS
 MATERIALS  INGREDIENTS  PROCESS  Sauce pan  Spatula  Plate.
WELCOME. Personal Information— Nimai Mondal Asst. Teacher (English) Dumuria Govt. Girls’ High School Dumuria, Khulna.
FLOW CHARTS IN PROCESS DESCRIPTION FRANK CHINGARANDE.
Problem Solving Flowcharts. Flowcharts Introduction  Flowcharts allow us to create a visual representation of a solution to a problem DRAW  With flowcharts,
Emma’s apple crumble Vocabulary.
Fried Ketupat Silfanni Yurnisya General Description Fried Ketupat is a dish of ketupat and then fried with sauce, vegetables, meat, and beaten.
BANANA PANCAKES At a Glance Prep Time : 20 min Cook Time : 2 min Course : Breakfast, Brunch Type of Prep : Campfire, Fry, Grill Occasion : Birthdays, Christmas,
Learning outcomes 5 Developing Code – Using Flowcharts
Basics of Computer Programming
Introduction To Flowcharting
Numbering System TODAY AND TOMORROW 11th Edition
Basics of Computer Programming
Basics of Computer Programming
Basics of Computer Programming
Programming Fundamentals
BRITISH FOOD.
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Creating Flowcharts AIM:
How to Draw a Process Flowchart
Lesson What are the connections? Lesson Objective:
Programming Fundamentals (750113) Ch1. Problem Solving
Programming Fundamentals (750113) Ch1. Problem Solving
Structural Program Development: If, If-Else
Presentation transcript:

Problem Solving: Algorithms and Flowcharts By Dr. Gabriel

Algorithms What is it? –Is a finite sequence of logical steps used to solve a problem –Example: prepare and serve a scrambled egg on a whole wheat bread  Take out a frying pan from the cabinet  Heat up the frying pan  Pour some oil into frying pan  Take out an egg from the fridge  Scramble it in a bowl  Pour it into the frying pan  Take out a spatula  Flip the egg to the other side in a minute  Take out a piece of a howl wheat bread and place it on a plate  Check if the egg is ready  If yes, put it on a slice of a whole wheat bread; If not, keep checking every minute.  Serve the meal

Algorithms Other examples –Driving to school/work/mall/beach, etc. Algorithms are critical and essential component of a problem solving process. Problem: –Algorithms are sequential –Poor handling of multiple flows based on different conditions Example: step # 10 and 11 in our scramble egg preparation algorithm

Flowcharts Flowchart is a graphical representation of an algorithm or a process Four basic elements: –Start –Action –Condition –End

Flowchart: Start Element Indicates the beginning of a flowchart Is the first one on the flowchart. Other elements are connected to it by using an arrow originating from this element and pointing to the connecting element.

Flowchart: Action Element Denotes any action to be performed Is connected to other elements in a flowchart by using arrows. Arrows that point to this element are originated from preceding elements, while an arrow that originates from this element points to the subsequent element on the flowchart

Flowchart: Condition Element Indicates conditions Connected to other elements in a flowchart by using arrows. Arrows that point to this element are originated from preceding elements, while arrows that originate from this element points to the subsequent element on the flowchart. Conditions have two outcomes: it’s either true or false. Each diamond sign must have two arrows originating from it; each one is labeled as either “T” or “F”.

Flowchart: End Element Indicates the end of a flowchart Is the last one on the flowchart. Other elements are connected to it by using arrows originating from the connecting elements and pointing to this element.

More on Flowcharts all elements on a flowchart must be connected to a preceding element except for the “start” element. all elements on a flowchart must connect to subsequent elements except for the “end” element. –For example, if you have any rectangles or diamond signs without arrows pointing to them and arrows originating from them, then your flowchart is incorrect: re-examine it and make appropriate changes. Flowcharting software –Microsoft Visio –A word-processing software such as Microsoft Word –Dia –Kivio –OpenOffice Draw, –You can also draw flowcharts on paper, but, it is a hassle to make changes to it =>you will need to re-draw it every time.

Questions?