The Robot and the Wall Introduction to Pseudocode Your Name Goes Here.

Slides:



Advertisements
Similar presentations
Operators and Arithmetic Operations. Operators An operator is a symbol that instructs the code to perform some operations or actions on one or more operands.
Advertisements

Introduction to C Programming
Rational Algebraic Expressions
1 ©2006 INSciTE Lab One Task: Move forward for 5 rotations and return Then try: Move forward for 5 rotations, turn right 90º.
Name of Test: Sit and Reach
Chapter 04 (Part III) Control Statements: Part I.
INTEGERS Integers include: the counting numbers….
A-Mazers Team Members Isaiah Grigos Chris Hart Erick Rua Eddie Miner.
ROBOT Computer and its Programs
10-1 Programming Remember: –programming language –how to program (conceptually) –intro to programming the “ROBOT” computer In this lecture: –programming.
ILLUSTRATING INTEGERS INTRODUCTION TO INTEGERS Integers are positive and negative numbers. …, -6, -5, -4, -3, -2, -1, 0, +1, +2, +3, +4, +5, +6, … Each.
Multiplying and Dividing Powers
+ Adding and Subtracting. + How do you add or subtract fractions?
Absolute Value Equations 3.6 solving equations only.
SCIENTIFIC NOTATION What is it? And How it works?.
Bell Quiz. Objectives Learn to use the Distributive Property to simplify rational expressions.
Operations with integers can be modeled using two-colored counters. Positive +1 Negative.
1 ©2006 INSciTE Problem Solving. 2 ©2006 INSciTE Generic Problem Solving Process Define the problem Brainstorm solutions Evaluate solutions Pick one Try.
Stand up! For addition problems, face the positive direction. For subtraction problems, face the negative direction.
UNIT 4, LESSON 5 Absolute Value Equations. Review of Absolute Value ions/absolutevalue/preview.weml
Computer Science Illuminated Programming: Controlling the Hardware.
ILLUSTRATING INTEGERS
Lesson 6-3 Example Example 2 Find the difference of –2 and –4. Use counters. 1.Write the subtraction expression. –2 – (–4)
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 2 I Am Not a Control Freak!
Absolute Value Equations and Inequalities OBJECTIVE: TSWBAT write and solve an absolute value inequality.
1.3 Exploring Real Numbers Textbook pg 17. Terminology Natural Numbers: {1, 2, 3, 4, 5, 6,…} Whole Numbers: {0, 1, 2, 3, 4, 5,…} Integers: {…,-3, -2,
Multiplication and Division of Exponents Notes
Presented by Lee Zenke 2015 Java Programming PT. 1.
ILLUSTRATING INTEGERS The University of Texas at Dallas.
Chapter Looping 5. The Increment and Decrement Operators 5.1.
ILLUSTRATING INTEGERS The University of Texas at Dallas.
Chapter Looping 5. The Increment and Decrement Operators 5.1.
$100 $200 $300 $400 $100 $200 $300 $400 $300 $200 $100 Subtraction sentence with pictures Subtract to get zero Subtract & balance equations Ways to.
Design A software design specifies how a program will accomplish its requirements A design includes one or more algorithms to accomplish its goal.
A personality for every occasion. High Level Actions  Flee  Follow  Attack  Find Light/Roam  Sit and Wait  Hibernate.
8-2: Reciprocal Function. What does domain mean? Are there any other numbers in the domain? in the domain? Are we missing any other numbers any other.
Solving Absolute-Value Equations
Solving Absolute Value Equations
Add and Subtract Negative Numbers
Checking Possible Solutions
Add and subtract complex numbers
Multiplication and Division of Exponents Notes
Factoring Special Products & Choosing a Factoring Method
The Laws of Exponents.
Chapter 5: Loops and Files.
1-6 Absolute Value Equations and Inequalities
6-3 Solving Systems Using Elimination
Properties of Exponents
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
BIOLOGY SEPTEMBER 2013 Opening Assignments.
Integers with Manipulatives
How to determine whether a given set of vectors
The Laws of Exponents.
Objectives Solve equations that contain absolute-value expressions.
Add or Subtract? x =.
The Laws of Exponents.
Solving Absolute Value Equations
Solving Absolute-Value Equations
Operators In Java Programming By Rajanikanth B.
L8-2 Notes: Adding Integers
Write about: What did you do over the LONG weekend?
Solving Absolute-Value Equations
Learning Objective Students will be able to: Solve equations in one variable that contain absolute-value expressions.
Exponents.
Section 6.1 Solving Inequalities Using Addition or Subtraction
Adding and Subtracting Rational Expressions
Notes Over Using Radicals
Multiplying Whole Numbers
How do I add and subtract complex numbers?
3.0 - Design A software design specifies how a program will accomplish its requirements A design includes one or more algorithms to accomplish its goal.
Presentation transcript:

The Robot and the Wall Introduction to Pseudocode Your Name Goes Here

The Problem A robot is sitting on a chair, facing a wall a short distance away. The robot can sense the wall with its fingertips but cannot see the wall or the chair. Your assignment is to instruct the robot to walk to the wall and return to its initial position. You are to express the required logic in pseudocode.

Robot Commands STAND SIT TURN (90 degrees) STEP ARMS UP ARMS DOWN ADD (Increment a counter) SUBTRACT (Decrement a counter) INITIALIZE (Zero a counter)

The First Attempt Arms Up Zero Counter DO WHILE fingers do not sense wall Step Add ENDDO Arms Down DO WHILE counter not equal to zero Step Subtract ENDDO Sit

The Solution