Chapter 8
Chapter 8
Statement-Level Control Structures
Chapter 8 Topics
? Introduction ? Selection Statements ? Iterative Statements ? Unconditional Branching ? Guarded Commands ? Conclusions
Copyright ? 2017 Pearson Education, Ltd. All rights reserved.
1-2
Levels of Control Flow
? Within expressions (Chapter 7) ? Among program units (Chapter 9) ? Among program statements (this chapter)
Copyright ? 2017 Pearson Education, Ltd. All rights reserved.
1-3
Controlling Program Flows
? A control structure is a control statement and the statements whose execution it controls
? Most programming languages follow a single thread of control (or scheduling)
? Types of control statements:
? Selection statements ? Iterative statements ? Unconditional branching statement
? Levels of Control Flow:
1. Within expressions 2. Among program units 3. Among program statements
Copyright ? 2017 Pearson Education, Ltd. All rights reserved.
1-4
Control Statements: Evolution
? FORTRAN I control statements were based directly on IBM 704 hardware
? Much research and argument in the 1960s about the issue
? One important result: It was proven that all algorithms represented by flowcharts can be coded with only two-way selection and pretest logical loops
Copyright ? 2017 Pearson Education, Ltd. All rights reserved.
1-5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- content mapping year 4 english
- the trading methodologies of w d
- mark scheme results january 2021 ig exams
- cenre uer cnte uer pearson edexcel international gcse
- accept pte academic accept
- content mapping year 5 sd
- judgment
- systems strategies and skills pearson
- a c year 2 autumnyear 6 autumn pearson education ltd 2015
- pearson edexcel cenre uer cnte uer international advanced
Related searches
- chapter 8 photosynthesis biology test
- chapter 8 photosynthesis worksheet answ
- chapter 8 photosynthesis
- developmental psychology chapter 8 quizlet
- chapter 8 photosynthesis answer key
- psychology chapter 8 quizlet
- biology chapter 8 photosynthesis answers
- chapter 8 photosynthesis pdf
- chapter 8 psychology quizlet memory
- psychology chapter 8 quizlet learning
- chapter 8 photosynthesis quizlet
- psychology chapter 8 quiz answers