Algorithms In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the.

Slides:



Advertisements
Similar presentations
ALGORITHMS AND FLOWCHARTS
Advertisements

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.
PSEUDOCODE & FLOW CHART
ALGORITHMS AND FLOWCHARTS
 Control structures  Algorithm & flowchart  If statements  While statements.
Review Algorithm Analysis Problem Solving Space Complexity
Introduction to Algorithm – part one Jennifer Elmer Form 3 Computing.
ALGORITHMS AND FLOWCHARTS
Control Structures Session 03 Mata kuliah: M0874 – Programming II Tahun: 2010.
C++ If….Else Statements and Flowcharts October 10, 2007.
Introduction to Scratch Programming and Other Coding Fun! Stacey Clark – TRT Jenna Tea- 3 rd grade Pinebrook Elementary.
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
Conditions. Objectives  Understanding what altering the flow of control does on programs and being able to apply thee to design code  Look at why indentation.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Lecture 4: C/C++ Control Structures Computer Programming Control Structures Lecture No. 4.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
1. Understand the application of Pseudo Code for programming purposes 2. Be able to write algorithms in Pseudo Code.
Flowcharting & Algorithms. Quick. Close your Eyes and Listen You are still sitting in the classroom. However, you have been called to the counselor’s.
1 Program Planning and Design Important stages before actual program is written.
Sequence Damian Gordon. Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its.
Algorithms in Scratch How to plan your code. Algorithms Algorithms provide computers with a set of instructions or a set of rules. They are written BEFORE.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Algorithms and Pseudocode
Computer Control Using computers to do tasks. What are Computers used for? ringing your alarm clock. microwaving your breakfast checking for text messages.
ALGORITHMS AND FLOWCHARTS. Why Algorithm is needed? 2 Computer Program ? Set of instructions to perform some specific task Is Program itself a Software.
Algorithms JPC and JWD © 2002 McGraw-Hill, Inc. 2 Algorithms 2 An Algorithm is a finite set of precise instructions for performing a computation or for.
Pseudocode Skill Area Materials Prepared by Dhimas Ruswanto, BMm.
ALGORITHMS AND FLOWCHARTS. A typical programming task can be divided into two phases: Problem solving phase  produce an ordered sequence of steps that.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
ECE122 Feb 10, Unary Operator An operator that takes only a single operand Plus: + Minus: – Cast: (type). E.g. (double)
Lecture 2: Introduction to Programming EEE2108: 공학프로그래밍 서강대학교 전자공학과 2011 학년도 2 학기 - Algorithms and Flowcharts -
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
Algorithms and Flowcharts
Programming Language Basics. What is a Programming Language? “A computer, human-created language used to write instructions for a computer.” “An artificial.
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Program design Program Design Process has 2 phases:
GC101 Introduction to computers and programs
Programming Languages
GENERAL OOPs CONCEPTS.
ALGORITHMS AND FLOWCHARTS
COVERED BASICS ABOUT ALGORITHMS AND FLOWCHARTS
CS111 Computer Programming
Algorithms and Flowcharts
Algorithm and Ambiguity
Exploring Computer Science Lesson 4-10 – Part 1
Introduction To Flowcharting
Intro to Programming with Scratch
Numbering System TODAY AND TOMORROW 11th Edition
Pseudo Code.
Lecturer CS & IT Department UOS MBDIN
Scratch – Simple Programming
ALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTS
Algorithms & Pseudocode
Scratch – Simple Programming
ALGORITHMS AND FLOWCHARTS
And and or…and RANDOMNESS
Introduction to Algorithms and Programming
Lesson Objectives To understand how to make sprites interact
Computer Programming.
Hour of Code.
Programming Language Basics
Introduction to Programming
Flowcharts Activity One
Algorithms TASK Outcomes What is an algorithm?
Exploring Computer Science Lesson 4-10 – Part 1
Scratch – Simple Programming
Presentation transcript:

Algorithms In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the kettle, turn it on and so on In computer terms algorithms describe a set of instructions to make a program work

Algorithms In computer terms algorithms are a set of instructions to carry out a software task. Many games programmers use algorithms when they are planning their games.

Pseudo code Programmers use Pseudo code to describe their algorithms. Pseudo code does not follow any programming language It sets out the algorithm with statements written in English

Pseudo code If student's grade is greater than or equal to 60 Print "passed" else Print "failed"

Pseudo code Below is an example of pseudo code for a game in scratch. When green flag is clicked Move car 10 steps forever If touching green Stop