Download presentation
Presentation is loading. Please wait.
Published byGregory Long Modified over 9 years ago
1
For Code Next For Code Next A loop is a segment of a code that repeats (changing slightly each time)
2
Three types of loops 1. For - Do repeat a segment of code a specific number of times (eg. For counter = 1 to 10) We did this last lesson 2. While - Do loops perform the segment of code only if a condition is true. Eg. Keep repeating until a certain result is reached. 3. Repeat Until (or post-test) loops is like a While-Do loop but is only tested after the segment is executed once.
3
A structured program is broken up into parts, or modules, that perform separate tasks. Module 1 Module 2 Module 2 Main Module is the control centre. (calls the other modules in when it needs to perform a task) Main Module is the control centre. (calls the other modules in when it needs to perform a task)
4
Don’t use a variable across more than one module Each module has only one entry and exit point.
5
Structure Charts
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.