Flowcharting & Algorithms

Slides:



Advertisements
Similar presentations
ALGORITHMS AND FLOWCHARTS
Advertisements

Summer ’12 AP Computer Science APCS Summer Assignments Read thoroughly this ppt and solve examples 6 and 7.
More on Algorithms and Problem Solving
ALGORITHMS AND FLOWCHARTS
PROBLEM SOLVING TECHNIQUES
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
How Are Algorithms Developed?
ALGORITHMS AND FLOWCHARTS
Chapter 2: Algorithm Discovery and Design
Chapter 1 Program Design
Problem Solving Chapter 2. What is an algorithm? n A solution to a problem that is: –Precise –Effective –Terminating.
Chapter 2: Algorithm Discovery and Design
Chapter 3 Planning Your Solution
ALGORITHMS AND FLOWCHARTS
DCT 1123 Problem Solving & Algorithms
PROGRAMMING, ALGORITHMS AND FLOWCHARTS
Chapter 2: Algorithm Discovery and Design Invitation to Computer Science, C++ Version, Third Edition.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
BACS 287 Programming Logic 1. BACS 287 Programming Basics There are 3 general approaches to writing programs – Unstructured – Structured – Object-oriented.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Flowcharting & Algorithms. Quick. Close your Eyes and Listen You are still sitting in the classroom. However, you have been called to the counselor’s.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
Chapter 2: Algorithm Discovery and Design Invitation to Computer Science.
ALGORITHMS AND FLOWCHARTS. A typical programming task can be divided into two phases: Problem solving phase  produce an ordered sequence of steps that.
Problem Solving.  Similar to Solving Math Word Problem  Read the Problem  Decide how to go about Solving the Problem  Solve the Problem  Test the.
Introduction to Flowcharts
Lecture 2: Introduction to Programming EEE2108: 공학프로그래밍 서강대학교 전자공학과 2011 학년도 2 학기 - Algorithms and Flowcharts -
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
 Problem Analysis  Coding  Debugging  Testing.
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Chapter 3 Structured Program Development in C C How to Program, 8/e, GE © 2016 Pearson Education, Ltd. All rights reserved.1.
ALGORITHMS AND FLOWCHARTS
Understand Problem Solving Tools to Design Programming Solutions
GC101 Introduction to computers and programs
FLOWCHARTS.
COVERED BASICS ABOUT ALGORITHMS AND FLOWCHARTS
CS111 Computer Programming
Understand Problem Solving Tools to Design Programming Solutions
Unit 2 Smarter Programming.
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
Introduction To Flowcharting
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
Introduction to Computer Programming
Programming Fundamentals
Computer Programming.
ALGORITHMS AND FLOWCHARTS
Unit# 9: Computer Program Development
Problem Solving Techniques
Programming & languages
ALGORITHMS AND FLOWCHARTS
Chapter 16 Component-Level Design
Introduction to pseudocode
ALGORITHMS AND FLOWCHARTS
Introduction to Algorithms and Programming
ME 142 Engineering Computation I
The Programming Process
Algorithm and Ambiguity
Problem Solving Designing Algorithms.
How Are Algorithms Developed?
Creating Computer Programs
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
ICT Gaming Lesson 2.
Introduction to Programming
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Basic Concepts of Algorithm
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Creating Computer Programs
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

Flowcharting & Algorithms

Key terms Abstraction - the process of hiding information that is not needed to know at the time; to use the overall essential concept with details hidden. Algorithm - a process to solve a problem. Function - a combination of variables and operators. Heuristic - a technique, a way to try to solve, an idea to use to look for the answer to a problem which may or may not be solved by the technique. Iteration - to do again, a repetition of an existing process. Method - a set of instructions telling a computer the operations to perform for a problem solution. NP - in computer science, problems that have an indeterminate answer; a choice of answers requiring more information to choose the best answer.

Key terms Operator - a character symbol like a plus sign in math, +, or a word or specially defined symbol usage in a programming language, that tells the computer to do something with variables. P - in computer science, problems that have a particular answer; a determinate problem. Procedure - another word for method. Solvable Problems - problems that can be solved with algorithms to an exact answer, a computer can find the exact answer. Unsolvable Problems - problems that are indeterminate in their solution for a computer. Variable - a programming word made up of letters, numbers, and/or allowable symbols which holds data for the program.

ALGORITHMS AND FLOWCHARTS Computer programming can be divided into two phases: Problem solving phase Make an ordered sequence of steps that solves a problem. This sequence of steps is called an algorithm. Implementation phase Implement using a programming language.

Steps in Problem Solving Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode may be in informal English, combinations of computer languages and spoken language. Whatever works for you. First produce a general algorithm (one can use pseudocode). Refine your steps until you get to an easy sequence. Perhaps use numbers or bullets. The point is to simplify the language to an understandable process or event.

The Flowchart A Flowchart is another algorithm but graphical. Shows logic solution Emphasizes individual steps and their interconnections A flowchart must have a start and stop. All steps in a flowchart must connect. Can’t leave a step “hanging” with no connection. e.g. control flow from one action to the next

Algorithms in alice 3 Alice word or phrase Explanation compare use of operators <, <=, =, >, >= and others; a part of making decisions is deciding what problem has to be compared to allow for a decision do in order statement at the beginning of the myFirstMethod screen; tells the program that you are creating to do each of the following steps in the sequence that you have written them; found at the bottom of the myFirstMethod screen if an additional ordering is needed do together indicates that all of the statements in the body of the statement will be done at the same time; found at the bottom of the myFirstMethod screen decision a choice to be made,   example if   else function an algorithm that provides an answer if else if (condition true) do this else do this; found at the bottom of the code editor orientation an objects forward motion is always the way the object is facing;   other directions are relative to this procedure an action on an object; a method that the object can do use snap on the scene setup, top right;   allows the placement of objects at the same depth or varying depths in the scene