This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.

Slides:



Advertisements
Similar presentations
INTEC CS160 - Jeanine Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 3 Control Structures and Data Files.
Advertisements

Java Control Statements
When you right click on the Interwrite icon, you can choose between the interactive, office, or one of the other options.
Vocabulary Interactive
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
Microsoft PowerPoint 2010 Lesson 1 Created by Felicia Hudson, Riverside High School--Durham Public Schools.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
Slides prepared by Rose Williams, Binghamton University Chapter 3 Flow of Control Loops in Java.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
Instructions for Enabling PowerPoint to Use Drag and Drop Macro 1.Open PowerPoint 2.Click Tools 3.Click Options 4.Click Security 5.Click Macro Security.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed.
Inserting Movies & Sound ICS101 Fall Where to go when inserting movies or sound files… You will always go to Insert  Movies and Sounds.
CHAPTER 6 Loop Structures.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Agenda Control Flow Statements Purpose test statement if / elif / else Statements for loops while vs. until statements case statement break vs. continue.
How to Use PowerPoint A Brief Guide. To Add Animation… 1.Insert an image from Clip Art or highlight a textbox. 2.Click “Slide Show” on the toolbar. 3.Click.
Tutorial 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Buttons library Edit a button instance.
The Kids’ Intervention Book Interactive Vocabulary PowerPoint Directions: To go “Slide Show” and click “View” mode. Type your name or class name in the.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 9 - JavaScript: Control Statements II Outline 9.1 Introduction 9.2 Essentials of Counter-Controlled.
Instructions: Use Project Management test questions as the basis for moving pieces. 1.This game requires two players (respectively player 1 and player.
ㅎㅎ logical operator if if else switch while do while for Third step for Learning C++ Programming Repetition Control Structures.
COMPUTER PROGRAMMING. Iteration structures (loops) There may be a situation when you need to execute a block of code several number of times. In general,
POWERPOINT 2007 THEMES AND BACKGROUNDS Greater Sacramento Urban League.
Pascal Programming Iteration (looping) Carl Smith National Certificate Unit 4.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
For Code Next For Code Next A loop is a segment of a code that repeats (changing slightly each time)
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
1. Open PowerPoint 2. Click in the top box and type “Washington D.C.. 3. Highlight, Bold, and change the font (any kind but I must be able to read it)
Create new project or open existing project (here, we will create a new project)
PowerPoint Lesson 4 Part A - Slide Transitions Save this to your computer folder. Go to the Animations ribbon. Choose a transition to this slide.
BY ILTAF MEHDI (MCS, MCSE, CCNA)1. INSTRUCTOR: ILTAF MEHDI (MCS, MCSE, CCNA, Web Developer) BY ILTAF MEHDI (MCS, MCSE, CCNA)2 Chapter No: 04 “Loops”
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Sesi 0607EKT120/4 Computer Programming Week 5 – Repetition / Loops.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Chapter 7 Control Structures. Java has very flexible three looping mechanisms. You can use one of the following three loops:  while Loop  do...while.
Windows Vista Configuration MCTS : Internet Explorer 7.0.
Loops causes program to execute the certain block of code repeatedly until some conditions are satisfied. Suppose you want to execute some code/s 10 times.
PHP Condtions and Loops Prepared by Dr. Maher Abuhamdeh.
Getting Started with Microsoft Word
PowerPoint Activity 4: Cyber Safety
Introduction to presentations ms PowerPoint
Scratch: iteration / repetition / loops
Chromebook Training.
Chapter 8 Repetition Statements
Loop Control Structure.
Loops October 10, 2017.
Welcome! IE 7 Test Drive Presented by the Office of Information Technology.
Objective of the lesson
IPC144 Introduction to Programming Using C Week 3 – Lesson 2
10 SCRATCH bLOCKS lesson 1 10 Blocks.
Looping III (do … while statement)
Case & Repetitive Statements
UB LIS 571 Soergel Lecture 8.2b Vocabulary control and authority control. Lexical relationships Dagobert Soergel Department of Library and Information.
A LESSON IN LOOPING What is a loop?
How to Make a Powerpoint Presentation
PowerPoint Lesson 4 Slide Transitions & Custom Animation
Body(身體) Random Slide Show Menu
Presentation transcript:

This presentation includes custom animations. To view the animations, you must view the presentation in Slide Show mode and activeX controls must be allowed. If you have opened this lesson in PowerPoint, use the PowerPoint menus to view it in slide show mode. If you have opened this lesson in a browser and see a bar similar to that below, click on the Slide Show icon A notice similar to the one below may appear warning that ActiveX or other scripts are disabled. Enable the controls for this website in order to see the animations.

do while Loops This slide show illustrates the order of execution of a do while loop. Christine S. Wolfe Ohio University Lancaster 2008-Aug-01 Vocabulary: do while *affect the condition (of the loop) initialization (of the loop) loop body loop repetition condition

In a do while loop: a set of instructions is executed at least once and is repeated as long as a condition is true.

body of the loop the test affect the test initialize the test } while (ThisVote != ‘Q’); { do ©Christine S. Wolfe printf(“Vote for your favorite of the following TV shows”); printf(“\n\nA – Lost”); printf(“\nB – The Office”); printf(“\nC – Dancing with the Stars”); printf("\nEnter your vote as A, B, or C: ”); fflush(stdin); scanf(“\n%c”, &ThisVote); printf(“Vote for your favorite of the following TV shows”); printf(“\n\nA – Lost”); printf(“\nB – The Office”); printf(“\nC – Dancing with the Stars”); printf("\nEnter your vote as A, B, or C: ”); fflush(stdin); scanf(“\n%c”, &ThisVote); switch(ThisVote) { case ‘A’: ++TotalVotesA; break; case ‘B’: ++TotalVotesB; break; case ‘C’: ++TotalVotesC; break; default: printf(“\n Invalid response: “); getchar(); } notice that the body is executed once BEFORE even reaching the test!

X = 1; { Y = X * 2; } x < 3 ++X; X = 1; { Y = X * 2; } ++X; do while ( ) x < 3 while ( ) ; while X = 1; { Y = X * 2; } ++X; x < 3 Like ALL loops, a do while loop can be written as a while loop. The opposite is NOT true. It is NOT true that all while loops can be rewritten as do while loops – at least not elegantly.

X = 1; { Y = X * 2; } X = 1; { Y = X * 2; } ++X; do while ( ) x < 3 while ( ) ; ++X; X < 3 XY Ending Values X 3 Y 4 XY Ending Values X 3 Y 4

INIT BLOCK includes while loop WHILE TEST AFFECT INIT BLOCK includes do while loop WHILE TEST AFFECT T F F T do