About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.

Slides:



Advertisements
Similar presentations
Chapter 4: Control Structures I (Selection)
Advertisements

Chapter 4 Ch 1 – Introduction to Computers and Java Flow of Control Loops 1.
CS101: Introduction to Computer programming
Looping Structures: Do Loops
Chapter 2: Understanding Structure
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 9 Decisions, Decisions, Decisions.
Defining Control Structures
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Intro to Programming CST JavaScript. Objectives Define software Identify the different types of software Differentiate the different types of programming.
Tell the robot exactly how to draw a square on the board.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Introduction to Programming. What is a Program  Set of Instructions that tells the computer what to Do.  Driving force behind the computer  Without.
An Introduction to Programming with C++ Sixth Edition
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
ALGORITHM CHAPTER 8. Chapter Outlines and Objectives  Define an algorithm and relate it to problem solving.  Define three construct and describe their.
Chapter 1: An Introduction to Control Structures Introduction to Programming with C++ Fourth Edition.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 2 I Am Not a Control Freak!
Pseudocode Algorithms Using Sequence, Selection, and Repetition Simple Program Design Third Edition A Step-by-Step Approach 6.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Overview An Introduction to Programming.
Chapter 15 I’m on the Inside; You’re on the Outside (Nested Loops) Clearly Visual Basic: Programming with Visual Basic nd Edition.
8.1 8 Algorithms Foundations of Computer Science  Cengage Learning.
Chapter 13 Do It, Then Ask Permission (Posttest Loops) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 14 Do It, Then Ask Permission.
STEP 3- DEVELOP AN ALGORITHM At this stage we break down the problem into simple manageable steps so that they can be handled easily.
Chapter 7 What’s Wrong with It? (Syntax and Logic Errors) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
An Introduction to Programming Using Alice 2.2, Second Edition Chapter 7 Recursive Algorithms.
An Introduction to Programming with C++1 An Introduction to Control Structures Tutorial 1.
Introduction to Programming in C++ Seventh Edition Chapter 1: An Introduction to Programming.
An Introduction to Control Structures
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Early - I can develop a sequence of instructions and run them using programmable devices or equivalent Designs a simple sequence of instructions/algorithm.
Global Challenge Walking for Water Lesson 2.
Global Challenge Night Sensor Lesson 2.
ICT Programming Lesson 3:
Global Challenge Fitness Friend Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
An Introduction to Control Structures
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
ICT Gaming Lesson 2.
Global Challenge Night Sensor Lesson 2.
An Introduction to Programming with C++ Fifth Edition
Global Challenge Fitness Friend Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Walking for Water Lesson 2.
The structure of programming
Global Challenge Fitness Friend Lesson 2.
Thinking procedurally
WJEC GCSE Computer Science
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Scratch 7B IT 1.
Presentation transcript:

About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning of each presentation. You may customize the presentations to fit your class needs. Some figures from the chapters are included. A complete set of images from the book can be found on the Instructor Resources disc.

Chapter 1 I Am Not a Control Freak! (Control Structures) Clearly Visual Basic: Programming with Visual Basic nd Edition

Objectives Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 3 After studying Chapter 1, you should be able to: Describe the three control structures Write simple algorithms using the sequence, selection, and repetition structures

Control Structures Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 4 Control structures Sequence, selection, and repetition Control the flow of a program’s logic All programs use the sequence structure Most programs Will use both selection and repetition structures

The Sequence Structure Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 5 Directs computer to process program instructions in a particular order Example: Rob, the mechanical man Has a limited instruction set Algorithm Set of step-by-step instructions that accomplish a task

The Sequence Structure (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 6 Figure 1-1 An example of the sequence structure

The Selection Structure Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 7 Also called the decision structure Makes a decision and then takes appropriate action based on that decision Used every time you drive your car and approach a railroad crossing

The Selection Structure (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 8 Figure 1-2 An example of the selection structure

The Repetition Structure Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 9 Directs computer to repeat one or more instructions until some condition is met Also referred to as a loop or an iteration

The Repetition Structure (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 10 Figure 1-3 An example of the repetition structure

Summary Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 11 Algorithm Set of step-by-step instructions that accomplish a task Control structures Sequence, selection, and repetition Also called logic structures Sequence structure Directs computer to process program instructions one after another Used in all programs

Summary (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 12 Selection structure Directs computer to make a decision and then selects appropriate action to take Repetition structure Directs computer to repeat one or more program instructions until some condition is met