decomposition. key terms structured programming functionality structure charts stepwise...
TRANSCRIPT
![Page 1: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/1.jpg)
DECOMPOSITION
![Page 2: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/2.jpg)
KEY TERMS
Structured programming
Functionality
Structure Charts
Stepwise refinement
Modularity
![Page 3: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/3.jpg)
Function header
Function call
Parameters (between
brackets)
Body of function
![Page 4: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/4.jpg)
REASONS
Multiple programmers = quicker output
Repeated calls not longer program
Reuse in different programs
![Page 5: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/5.jpg)
Identify whether 10
numbers are divisible
by 6
Get a 5-letter word and
say whether the word
starts with P or ends
with E
question1 question2
![Page 6: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/6.jpg)
YOUR TURN:
From a group of no
more than 12 prices,
determine which is the
highest price and
calculate the new price
attracting a 10%
discount if it exceeds
$500.
![Page 7: DECOMPOSITION. KEY TERMS Structured programming Functionality Structure Charts Stepwise refinement Modularity](https://reader030.vdocuments.us/reader030/viewer/2022032606/56649e875503460f94b8b30a/html5/thumbnails/7.jpg)
FUNCTIONS IN C
http://www.mycplus.com/tutorials/c-programming-tutorials/functions/
• Basics
• Passing arguments• Returning values• Representing arrays• Global vs local
variables