Chapter 3 Part 1:Top-down Program Design Part 2:Relational and Logical Operators @日济大学 TONGJI UNIVERSITY
Chapter 3 Part 1: Top-down Program Design Part 2: Relational and Logical Operators
Top-down Program Design(1/14) Top-down and bottom-up design Top-down and bottom-up are both strategies o,mostly involving software. Top-down design is the process of starting with a large task and breaking it down into smaller,more easily understandable pieces(subtasks),which perform a portion of the desired task. Bottom-up design is the piecing together of systems to give rise to grander systems,thus making the original systems sub-systems of the emergent system. @月停大学 TONGJI UNIVERSITY
➢ Top-down and bottom-up design Top-down and bottom-up are both strategies o, mostly involving software. ✓ Top-down design is the process of starting with a large task and breaking it down into smaller, more easily understandable pieces(subtasks), which perform a portion of the desired task. ✓ Bottom-up design is the piecing together of systems to give rise to grander systems, thus making the original systems sub-systems of the emergent system. Top-down Program Design(1/14)
Top-down Program Design(2/14) >The top-down design progress Clearly state the problem that you are trying to solve. Define the inputs required by the program and the outputs to be produced by the program. Design the algorithm that you intend to implement in the program. Turn the algorithm into MATLAB statement. Test the resulting MATLAB program. @日济大学 AW TONGJI UNIVERSITY
➢ The top-down design progress ✓ Clearly state the problem that you are trying to solve. ✓ Define the inputs required by the program and the outputs to be produced by the program. ✓ Design the algorithm that you intend to implement in the program. ✓ Turn the algorithm into MATLAB statement. ✓ Test the resulting MATLAB program. Top-down Program Design(2/14)
Top-down Program Design(3/14) Start State the problem If the subtasks are large,the designer can break Define inputs them up into even smaller sub-subtasks and outputs Decomposition Design the algorithm Stepwise refinement Convert algorithm into MATLAB Define the funcions of the piece in statements greater and greater detail CDHAW Test the End resulting program @月两大学 TONGJI UNIVERSITY
Start State the problem Define inputs and outputs Design the algorithm Convert algorithm into MATLAB statements Test the resulting program End Decomposition Stepwise refinement If the subtasks are large, the designer can break them up into even smaller sub-subtasks Define the funcions of the piece in greater and greater detail Top-down Program Design(3/14)
Top-down Program Design(4/14) Pseudocode >As a part of the design process,it is necessary to describe the algorithm that you intend to implement. >The description of the algorithm should be in a standard form that is easy for both you and other people to understand, and it should aid you in turning your concept into MATLAB code. Pseudocode @日济大学 TONGJI UNIVERSITY
➢ As a part of the design process, it is necessary to describe the algorithm that you intend to implement. ➢ The description of the algorithm should be in a standard form that is easy for both you and other people to understand, and it should aid you in turning your concept into MATLAB code. Pseudocode Top-down Program Design(4/14) Pseudocode