Modules Programmers break programming problems down into smaller, reasonable units called modules, subroutines, procedures, functions, or methods When.

Slides:



Advertisements
Similar presentations
Modular Design Using Subroutines (functions later)
Advertisements

Programming Languages By Stefan Kyriacou. Procedural Language Procedural (also known as imperative language) language is a programming language that works.
Chapter 3: Modules, Hierarchy Charts, and Documentation
Chapter 3: Modularization
Chapter 2: Modularization
Loops, and sub-routines Interrupts Can be very useful in control applications particularly when the microprocessor must perform two tasks apparently.
Computers Are Your Future
Chapter 11 Trisha Cummings. Structure Charts The recommended tool for designing a modular, top- down system is a structure chart. A structure chart is.
Communication between modules, cohesion and coupling
Modules, Hierarchy Charts, and Documentation
1.4 Programming Tools Flowcharts Pseudocode Hierarchy Chart
1 Software Design Introduction  The chapter will address the following questions:  How do you factor a program into manageable program modules that can.
3.1.3 Program Flow control_1 Understand the need for structure Breaking things down.
Programming Logic and Design Fourth Edition, Introductory
ALGORITHMS THIRD YEAR BANHA UNIVERSITY FACULTY OF COMPUTERS AND INFORMATIC Lecture two Dr. Hamdy M. Mousa.
Chapter 2 - Problem Solving
Chapter 2 - Problem Solving
What is Software Design?  Introduction  Software design consists of two components, modular design and packaging.  Modular design is the decomposition.
Copyright Irwin/McGraw-Hill Software Design Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Software Design Deriving a solution which satisfies software requirements.
1 STRUCTURE CHARTS Elements and Definitions. 2 Software System Design translates SRS into a ===> software system architecture: –system’s static structure.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Key.
Writing a Complete Program
Modules, Hierarchy Charts, and Documentation
SE-565 Software System Requirements More UML Diagrams.
- Meeting 4 – Writing a Complete Program
Structure Charts Agenda: Use of Structure Charts Symbols How to create.
Describe the application and limits of procedural, object orientated and event driven programming. 
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Classes, Objects, and World-level Methods
INTRODUCTION TO PROGRAMMING STRUCTURE Chapter 4 1.
Program Design Simple Program Design Third Edition A Step-by-Step Approach 9.
Programming Logic and Design Fifth Edition, Comprehensive
First Steps in Modularization Simple Program Design Third Edition A Step-by-Step Approach 8.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
SE: CHAPTER 7 Writing The Program
Systems analysis and design, 6th edition Dennis, wixom, and roth
Functions Top-down design Breaking a complex problem into smaller parts that we can understand is a common practice. The process of subdividing a problem.
First Steps in Modularization. Simple Program Design, Fourth Edition Chapter 8 2 Objectives In this chapter you will be able to: Introduce modularization.
SOFTWARE DESIGN. INTRODUCTION There are 3 distinct types of activities in design 1.External design 2.Architectural design 3.Detailed design Architectural.
First Steps in Modularization. Simple Program Design, Fourth Edition Chapter 8 2 Objectives In this chapter you will be able to: Introduce modularization.
1 5.4 Modular Design Top-Down Design Structured Programming Advantages of Structured Programming.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Organisation Structure How & who the structure of the business organisation works and its effects.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
Systems Design.  Application Design  User Interface Design  Database Design.
Expressing Algorithms as Flowcharts and Pseudocode
Sequencing (chap. 17) Robert F. Mager Heather Buttorff.
CSE 110: Programming Language I Matin Saad Abdullah UB 404.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Using Stored Procedures ADO.NET - Lesson 07  Training time: 15 minutes  Author:
EXPOSITORY TEXT. Expository text gives facts and information about a topic. This kind of text usually states a main idea, or central idea, about the topic.
Further Modularization, Cohesion, and Coupling. Simple Program Design, Fourth Edition Chapter 9 2 Objectives In this chapter you will be able to: Further.
System Design and Modeling
Functions and Procedures
Introduction to Programming
Structure Charts Agenda: Use of Structure Charts Symbols How to create.
Starting Out with Programming Logic & Design
Structured Academic Controversy
On the Criteria To Be Used in Decomposing Systems into Modules
Structure Charts Agenda: What are Structure Charts
Illustrating Report Data
Flowcharts and Pseudocode
Writing a Complete Program
Starting Out with Programming Logic & Design
Communication between modules, cohesion and coupling
Modules, Subroutines, Procedures, Functions, or Methods
Organization Structure
Structure Charts.
Presentation transcript:

Modules Programmers break programming problems down into smaller, reasonable units called modules, subroutines, procedures, functions, or methods When you create a module or subroutine, you give the module a name that a calling program uses when the module is about to execute A module can call other modules Functions are a type of module

Creating Hierarchy Charts A hierarchy chart illustrates module relationships Does not tell you what tasks are to be performed within a module and thus does not show control flow. Does not tell you when or how a module executes Rather, identifies which routines exist within a program and which routines call which other routines A hierarchy chart shows hierarchy, that is, subordinate-superordinate relationships. In particular, it shows which modules (functions) call which others.

Creating Hierarchy Charts (continued)

Numbering of Modules

Module Listing Order 0 1 2 2.1 2.2 2.3 2.1.1 2.1.2 2.1.2.1 2.1.2.2