ES140CmpE_lecture3

ES140CmpE_lecture3 - ES 140 Module 2 Computer Engineering...

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

View Full Document Right Arrow Icon
ES 140 Module 2 Computer Engineering Lecture 3: Software Design Xenofon Koutsoukos Department of Electrical Engineering and Computer Science Vanderbilt University Fall 2006
Background image of page 1

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

View Full DocumentRight Arrow Icon
Outline Top-down approach Algorithms Decomposition Stepwise refinement Pseudocode Matlab basics Variables and arrays Display output data Scalar and array operations
Background image of page 2
Top-Down Design Suppose that you are an engineer working in  industry, and that you need to write a  program to solve a complex problem How do you begin? For toy problems, it is possible to start  programming “on-the-fly” For important problems, it pays to completely  think out the problem and the approach  before writing a single line of code
Background image of page 3

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

View Full DocumentRight Arrow Icon
Top-Down Design Top-down design  is the process of starting with a  large task and breaking it down to smaller pieces  (subtasks) which perform a portion of the desired  task Each subtask may be divided into smaller subtasks if  necessary Each piece can be coded and tested independently Sometimes by several computer engineers The pieces are integrated only after each piece has  been verified to work properly by itself
Background image of page 4
Top-Down Design State the problem you are trying to solve Define required inputs and outputs Design the algorithm Convert algorithm into Matlab code Test the resulting program Decomposition Stepwise refinement
Background image of page 5

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

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

Page1 / 18

ES140CmpE_lecture3 - ES 140 Module 2 Computer Engineering...

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

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