Qbasic Modular Programming 2000 John Urrutia All rights
Qbasic Modular Programming © 2000 John Urrutia. All rights reserved. 1
Structured Programming l. Good Programming Fundamentals èReliability l Consistently produces correct output. èUnderstandable (read-able) l It shouldn’t be harder to understand than to code èRobust l Bullet Proof. èFlexible l Easy to fix and modify. © 2000 John Urrutia. All rights reserved. 2
Top Down Design l. Phase 1 èStepwise Refinement w Divide and conquer s Functional Decomposition s Data Definition © 2000 John Urrutia. All rights reserved. 3
Top Down Design l. Phase 2 èModular development w modularization s Single functionality s Re-usability © 2000 John Urrutia. All rights reserved. 4
Top Down Design l. Phase 2 èCohesion w The “internal strength” of a module w The minimal number of statements to accomplish the task. èCoupling w The separation of the workings of the module with its interface © 2000 John Urrutia. All rights reserved. 5
Top Down Design l. Phase 3 èProgram coding w HIPO s Hierarchical Input Process Output Charts w Flowcharts © 2000 John Urrutia. All rights reserved. 6
Top Down Design l. Phase 3 èTesting w Program Stubs s Modules s Functions s Sub-routines w Blackbox VS Whitebox © 2000 John Urrutia. All rights reserved. 7
Top Down Design l. Phase 3 èTesting w Black box s Functional testing w White box s Path testing © 2000 John Urrutia. All rights reserved. 8
- Slides: 8