Loop Development Zhen Jiang Dept. of Computer Science

Slides:



Advertisements
Similar presentations
Repetition Statements Perform the same task repeatedly Allow the computer to do the tedious, boring things.
Advertisements

CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
1 10/20/08CS150 Introduction to Computer Science 1 do/while and Nested Loops Section 5.5 & 5.11.
Data access control and measure in the development of web-based health insurance systems Zhen Jiang Computer Science Department Information Assurance Center.
Summer Training on Computer Science, WCU Summer Training on Computer Science Zhen Jiang Department of Computer Science West Chester University.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand basic loop concepts: ■ pretest loops and post-test loops ■ loop.
© 1999, by Que Education and Training, Chapter 7, pages of Introduction to Computer Programming with Visual Basic 6: A Problem-Solving Approach.
Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA CSC141 Computer Science I.
110-K1 Iterations (1) Up to now, need to call the procedure again (e.g. click again on a command button) To repeat a piece of code: Can also use loops:
Computer Programming in BIO Lab Zhen Jiang Computer Science Department West Chester University West Chester, PA 19383
Domain Analysis Zhen Jiang West Chester University.
CSC141 Computer Science I Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383
Summer Training on Computer Science, WCU Summer Training on Computer Science 2008 Zhen Jiang Department of Computer Science West Chester University West.
CSC 142 Computer Science II Zhen Jiang West Chester University
CSC115 Introduction to Computer Programming Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383
Iteration Chapter Iteration = Repetition 3 Looping Via The for Loop for loop: A block of code that executes a group of statements repeatedly until.
CSC115 Introduction to Computer Programming Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383
Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA CSC141 Computer Science I 12/11/20151.
CSC115: Matlab Special Session Dr. Zhen Jiang Computer Science Department West Chester University.
Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA CSC141 Computer Science I 2/4/20161.
Time Sequence Diagram Dr. Zhen Jiang West Chester University url:
STEP 3- DEVELOP AN ALGORITHM At this stage we break down the problem into simple manageable steps so that they can be handled easily.
Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA CSC141 Computer Science I.
CPSC 233 Tutorial 5 February 2 th /3 th, Java Loop Statements A portion of a program that repeats a statement or a group of statements is called.
Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA CSC530 Data Structures - LOOP 7/9/20161.
MGT 210 Week 3 Assignment Exercise 7-2 To purchase this material click on below link 210/MGT-210-Week-3-Assignment-Exercise-7-
MGT 230 Complete Class To purchase this material click on below link 230/MGT-230-Complete-Class. For more classes visit.
MGT 307 Complete Class To purchase this material click on below link 307/MGT-307-Complete-Class. For more classes visit.
MGT 311 Complete Class To purchase this material click on below link 311/MGT-311-Complete-Class. For more classes visit.
MGT 426 Complete Class Solution- NO DQ's To purchase this material click below link 426-Complete-Class-Solution-No-DQs.
PRG 420 Week 1 Individual Hello World To purchase this material click below link 420-Week-1-Individual-Hello-World.
PSY 210 Week 5 Exercise Conformity Response Appendix E To purchase this material click on below link 210/PSY-210-Week-5-Exercise-Conformity-
XACC 280 Week 8 Assignment Regulatory Bodies Post your response to the following question, using 250 to 300 words: What are the major regulatory bodies.
QRB 501 Week 2 Exercise 1 Markup = 70; cost = 83% a) Find the cost b) Find the selling price To purchase this material click on the link
PSY 460 Week 1 DQ 1 What are some environmentally related current events? How do these events affect the human population? To purchase this material click.
PSY 240 Complete Class PSY 240 The Brain, The Body, And The Mind: All Together Now To purchase this material click on below link
IT 210 Week 5 CheckPoint Simple Array Process To purchase this material link CheckPoint-Simple-Array-Process.
Click Here for Price List Template -
Chapter 9 Repetition.
CSC141 Computer Science I Zhen Jiang Dept. of Computer Science
Topics discussed in this section:
CSC115 Introduction to Computer Programming
CSC141 Computer Science I Zhen Jiang Dept. of Computer Science
Loops in C C has three loop statements: the while, the for, and the do…while. The first two are pretest loops, and the the third is a post-test loop. We.
CSC115 Introduction to Computer Programming
CSC240 Computer Science III
CSC 142 Computer Science II
Chapter 5 Repetition.
CSC240 Computer Science III
CSC141 Computer Science I Zhen Jiang Dept. of Computer Science
Chapter 6 Repetition Objectives ❏ To understand basic loop concepts:
Chapter 4 LOOPS © Bobby Hoggard, Department of Computer Science, East Carolina University / These slides may not be used or duplicated without permission.
CST221: Database Systems (III)
CSC115 Introduction to Computer Programming
CSC115 Introduction to Computer Programming
Group2 Group members:
CSC141 Computer Science I Zhen Jiang Dept. of Computer Science
CSC530 Data Structure - Decision
Zhen Jiang West Chester University
CSC240 Computer Science III
Time Sequence Diagram Dr. Zhen Jiang West Chester University
CSC115 Introduction to Computer Programming
Instance Method – CSC142 Computer Science II
Zhen Jiang West Chester University
Dr. Zhen Jiang Computer Science Department West Chester University
Difference between Compound Interest & Simple Interest.
Introduction to Computer Science
Dr. Zhen Jiang Computer Science Department West Chester University
Create your own tumblr. Log in.
Sample Proofs 1. S>-M A 2. -S>-M A -M GOAL.
Presentation transcript:

Loop Development Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383 zjiang@wcupa.edu

Loop Price is right. Sample execution (click on this link to try) Each button in the above sample REPEAT …?

While loop Do-while loop For loop

Sample of evelopment process

Counter control loop Event control loop 1+3+5+7, three loops 5 hello, three loops 1+2+3+ 1+2+4+8 Event control loop 1+3+5 Preset e=e+2 and post-set

Exercises Simple event, already in main part of repetition body:  TV purchase Complete body description (with year updates): population  Event control: 1+2+4+8+... Complex repetition: 1+2+3+4+...+99

Solution