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
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

How can Microsoft PowerPoint 2007 help you share information?
CS 4 Intro to Programming using Visual Basic Do Loops Patchrawat Uthaisombut University of Pittsburgh 1 based on lecture notes by D. Schneider.
Microsoft® Small Basic
1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros.
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.
Microsoft Office PowerPoint 2013 Microsoft Office PowerPoint 2013 Courseware # 3256 Lesson 7: Preparing the Slide Show.
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.
Defining Control Structures
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.
JavaScript Lesson 1 TBE 540. Prerequisites  Before beginning this lesson, the learner must be able to… Create a basic web page using a text editor and/or.
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.
PubMed/Filters (Limits) (module 4.2). MODULE 4.2 PubMed/Filters Instructions - This part of the:  course is a PowerPoint demonstration intended to introduce.
CDF CADWEB San Luis Obispo Unit Overview and Instructions.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Six Repeating Program Instructions.
Pep Up Instruction with PREZI Creating a Prezi for your Classroom.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Extended DISC Online System User Instruction: How to Purchase Points.
PowerPoint Assignment “Cut and Paste” This assignment will afford you an opportunity to utilize advanced tools and techniques in PowerPoint. Follow the.
Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
Undoing Java Update Removing Java 7 Update 45 & Installing Java 7 Update 40.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
Instructions: Use Project Management test questions as the basis for moving pieces. 1.This game requires two players (respectively player 1 and player.
Tutorial 51 Programming Structures Sequence - program instructions are processed, one after another, in the order in which they appear in the program Selection.
Visual Basic.net Loops. Used to do multiple executions of the same block of code Do while loops Do until loops For next loops.
Lecture 4: Calculating by Iterating. The while Repetition Statement Repetition structure Programmer specifies an action to be repeated while some condition.
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 4 Looping.
Basic Control Structures
`. Lecture Overview Structure Programming Basic Control of Structure Programming Selection Logical Operations Iteration Flowchart.
 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)
1 Using the mail.cozzini.com Address Book. 2 Sending a new Click on New button.
PowerPoint Lesson 4 Part A - Slide Transitions Save this to your computer folder. Go to the Animations ribbon. Choose a transition to this slide.
PGT C Programming1 Week 4 – Repetition Structures / Loops.
Perfecto Mobile Automation
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
Control Flow (Python) Dr. José M. Reyes Álamo. 2 Control Flow Sequential statements Decision statements Repetition statements (loops)
Sesi 0607EKT120/4 Computer Programming Week 5 – Repetition / Loops.
Program Design & Development EE 201 C7-1 Spring
Windows Vista Configuration MCTS : Internet Explorer 7.0.
Getting Started with Microsoft Word
Lesson 7: Preparing the Slide Show
while Repetition Structure
Lecture 4 - Loops UniMAP EKT120 Sem 1 08/09.
Week 4 – Repetition Structures / Loops
Animation Animations allow you to move pictures and text on, off, and around your slide. Avoid the temptation to over-use animation as it distracts from.
MACROS MUST BE ENABLED FOR THIS FILE TO WORK
A LESSON IN LOOPING What is a loop?
Connect: What do the images have in common and how are they used in websites? Anchor and Bookmark.
Connect: What do the images have in common and how are they used in websites? Anchor and Bookmark.
PowerPoint Lesson 4 Slide Transitions & Custom Animation
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.

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

In a while loop, a set of instructions is executed as long as a condition is true. TotalPurchases = 0.0; printf("\nDid you make a purchase? Y or N:"); scanf("\n%c", &PurchaseYN); while (Purchase == 'Y') { printf("\nEnter the purchase amount: "); scanf("\n%d", &PurchaseAmt); TotalPurchases = TotalPurchases + PurchaseAmt; printf("\nDid you make another purchase? Y or N:"); scanf("\n%c", &PurchaseYN); } printf("\nThe total of all purchases is %d", TotalPurchases); The snippet below allows the user to total the cost of a set of purchases. For each purchase, the program asks for the amount of the purchase and adds it to the total. The program then asks the user if he or she has another purchase. As long as the user replies that he or she has another purchase, the program will repeat the set of instructions highlighted below. ©Christine S. Wolfe

Click through each step to translate the code into a flowchart. start GET PurchaseYN TotalPurchases = TotalPurchases + PurchaseAmt TotalPurchases = 0.0 TotalPurchases = 0.0; printf("\nDid you make ar purchase? Y or N:"); scanf("\n%c", &PurchaseYN); while (Purchase == 'Y') printf("\nEnter the purchase amount: "); scanf("\n%d", &PurchaseAmt); { TotalPurchases = TotalPurchases + PurchaseAmt; printf("\nDid you make another purchase? Y or N:"); scanf("\n%c", &PurchaseYN); } end GET PurchaseYN GET PurchaseAmt printf("\nThe total of all purchases is %d", TotalPurchases); A A F T while Purchase == 'Y' Display TotalPurchases ©Christine S. Wolfe

start GET PurchaseYN TotalPurchases = TotalPurchases + PurchaseAmt TotalPurchases = 0.0 end GET PurchaseYN GET PurchaseAmt A A F T while Purchase == 'Y' Display TotalPurchases Click through, step by step, to see the program flow in response to user input. start GET PurchaseYN TotalPurchases = TotalPurchases + PurchaseAmt TotalPurchases = 0.0 end GET PurchaseYN GET PurchaseAmt while Purchase == 'Y' Display TotalPurchases User types Y User types User types Y while Purchase == 'Y' TotalPurchases = TotalPurchases + PurchaseAmt GET PurchaseYN GET PurchaseAmt User types User types N Program Displays ©Christine S. Wolfe

T Wear a jacket while Temp < 60 F READ Temp READ Temp T Remove jacket ©Christine S. Wolfe

After INIT Body of Loop T x = x + 1 while x != 6 F x = 1 PRINT x X After Loop TTTTT F ©Christine S. Wolfe

T while Month <= 12 F Month = 1 YearSales = 0 GET MonthSales YearSales = YearSales + MonthSales Month = Month + 1 After INIT Body of Loop Month 1 After Loop YearSales 0 MonthSales ©Christine S. Wolfe