19
Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and Jim Hubbard

Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Embed Size (px)

Citation preview

Page 1: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Chapter 5Problem Solving with the Sequential Logic Structure

Problem Solving and Programming Concepts

9th Edition

By Maureen Sprankle and Jim Hubbard

Page 2: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc. 0-2

Overview

• Algorithm Instructions, Flowchart Symbols, Pseudocode

• The Sequential Logic Structure

• Solution Development

Page 3: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Table 5.1 Algorithm Instructions and Flowchart Symbols

0-3

Page 4: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Table 5.1 Algorithm Instructions and Flowchart Symbols

0-4

Page 5: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.1 Flowchart Diagram for the Sequential Structure

0-5

Page 6: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.2 Algorithm, Flowchart, and Pseudocode to Enter and Print Two Variables

0-6

Page 7: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Solution Development

0-7

Page 8: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.3 Problem Analysis Chart—Interest Problem

0-8

Page 9: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.4 The Interactivity Chart—Interest Problem

0-9

Page 10: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.5 The IPO Chart—Interest Problem

0-10

Page 11: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.6 Coupling Diagram

0-11

Page 12: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.7 Data Dictionary

0-12

Page 13: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.8a Algorithm, Flowchart, and Pseudocode for InterestControl Module

0-13

Page 14: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.8a Algorithm, Flowchart, and Pseudocode for InterestControl Module

0-14

Page 15: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.8b Algorithm, Flowchart, and Pseudocode for Read Module

0-15

Page 16: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.8c Algorithm, Flowchart, and Pseudocode for Calc Module

0-16

Page 17: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Figure 5.8d Algorithm, Flowchart, and Pseudocode for Print Module

0-17

Page 18: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc. 0-18

Page 19: Copyright © 2012 Pearson Education, Inc. Chapter 5 Problem Solving with the Sequential Logic Structure Problem Solving and Programming Concepts 9 th Edition

Copyright © 2012 Pearson Education, Inc.

Chapter 5Problem Solving with the Sequential Logic Structure

End Chapter 5