08design_3014

08design_3014 - Lecture File 08 COP 3014 COP 3014 Lecture...

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

View Full Document Right Arrow Icon
Lecture File 08 COP 3014 January 30, 2009 A. Ford Tyson 1 COP 3014 Lecture File 08 ± Top-Down Design 1 ± Temperatures Program Example ± Introduction to Incremental Testing and Debugging Copyright 1997-present, Ann Ford Tyson Top-Down Design complex problem or task 2 high-level language program which solves the problem (performs the task) procedural paradigm Step 1: Analyze Task INPUT interactive file(s) combination identify variables needed for input items if input is interactive, what are user characteristics? 3 anticipate all possible input errors and decide how to correct them anticipate all possible valid input data values & combinations if input is from file, what is the format ?
Background image of page 1

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

View Full DocumentRight Arrow Icon
January 30, 2009 A. Ford Tyson 2 Analyze Task p. 2 OUTPUT required ? desirable ? aim output at audience other programmers business managers 4 identify variables needed to store final results identify auxiliary variables school children adults who are not in CS education level experience Analyze Task p. 3 NAMED CONSTANTS stated in problem description or derived from it e.g. maximum air speed in a flight 5 speed in a flight simulator ASSUMPTIONS stated or derived e.g. the user will not try to dive and climb simultaneously Stepwise Refinement ± Underlying principle: break a task into more precisely defined sub-tasks. Break each sub-task down in the same 6 fashion. ± a.k.a. divide and conquer a large, complex problem can be overwhelming if approached as a whole. Tasks become easier (more
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/14/2011 for the course COP 3014 taught by Professor Tyson during the Fall '10 term at FSU.

Page1 / 8

08design_3014 - Lecture File 08 COP 3014 COP 3014 Lecture...

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

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