L09topdown

L09topdown - ● function ■ predefined programmer-defined...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: ● function ■ predefined, programmer-defined ● arguments, (formal) parameters ● return value ● function call, function invocation ● function definition ■ head, body ● function prototype (declaration) ■ expanded form, abbreviated form ● local variables, global variables, scope ● call-by-value ● black box principle, information hiding, procedural abstraction What Is? Top-Down Program Design Debugging Functions ● humans can only handle a certain (relatively low) level of complexity ● a program longer than 50 (20?) lines is already probably too complex ● top-down design- a method to decrease complexity a programming task by by breaking it down into a few simpler relatively independent subtasks (other method names - stepwise refinement and divide and conquer ) ● if a subtask is still complex - further subdivide ● each simple subtask should be coded by a separate function or other separated piece of code ● added benefit - separate people (or separate teams) can work on different subtasks ● black box principle is important Top-Down Design ● problem : a large “economy” size pizza is not always the best buy: ■ pizza sizes are given as a diameter (in inches)...
View Full Document

This note was uploaded on 04/22/2010 for the course CS 23021 taught by Professor Staff during the Spring '08 term at Kent State.

Page1 / 10

L09topdown - ● function ■ predefined programmer-defined...

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

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