Presentation is loading. Please wait.

Presentation is loading. Please wait.

DECOMPOSITION. KEY TERMS  Structured programming  Functionality  Structure Charts  Stepwise refinement  Modularity.

Similar presentations


Presentation on theme: "DECOMPOSITION. KEY TERMS  Structured programming  Functionality  Structure Charts  Stepwise refinement  Modularity."— Presentation transcript:

1 DECOMPOSITION

2 KEY TERMS  Structured programming  Functionality  Structure Charts  Stepwise refinement  Modularity

3  Function header  Function call  Parameters (between brackets)  Body of function

4 REASONS  Multiple programmers = quicker output  Repeated calls not longer program  Reuse in different programs

5  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

6 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.

7 FUNCTIONS IN C http://www.mycplus.com/tutorials/c-programming-tutorials/functions/ Basics Passing arguments Returning values Representing arrays Global vs local variables


Download ppt "DECOMPOSITION. KEY TERMS  Structured programming  Functionality  Structure Charts  Stepwise refinement  Modularity."

Similar presentations


Ads by Google