structured - Programming Structured Programming og...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Structured Programming Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
rog Fundamentals I: Structured Programming /Slide 2 Structured Programming A disciplined approach to programming Top-down design Step-wise refinement using a restricted set* of program structures * The set of program structures used in structured programming is: Sequence Choice Loop
Background image of page 2
rog Fundamentals I: Structured Programming /Slide 3 Top-Down Design A program is divided into a main module and its related modules. Each module is in turn divided into submodules until the resulting modules are understood without further division.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
rog Fundamentals I: Structured Programming /Slide 4 Stepwise Refinement Any action can be another: Sequence Choice Loop condition action_x true false initialization update condition_x action_y true false
Background image of page 4
A Sequence It is natural to write a program as a sequence of program structures such as sequences, choices and loops.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/30/2010 for the course COMP COMP102 taught by Professor Lrr during the Fall '09 term at HKUST.

Page1 / 14

structured - Programming Structured Programming og...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online