29
Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and Jim Hubbard

Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Embed Size (px)

Citation preview

Page 1: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Chapter 3Planning Your Solution

Problem Solving and Programming Concepts

9th Edition

By Maureen Sprankle and Jim Hubbard

Page 2: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc. 0-2

Overview

• Communicating with the Computer• Organizing the Solution• Introduction to UML• Using the Tools• Testing the Solution• Coding the Solution• Software Development Cycle

Page 3: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Good Quote

Computers are only as good as their hardware, their software, and the people

using them!

0-3

Page 4: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Analyzing the Problem

Understand requirements:

1.The given data

2.The required results

3.The processing that is required in the problem

4.A list of solution alternatives

0-4

Page 5: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc. 0-5

Page 6: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.9 Flowchart Symbols

0-6

Page 7: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.9 Flowchart Symbols

0-7

Page 8: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.9 Flowchart Symbols

0-8

Page 9: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.9 Flowchart Symbols

0-9

Page 10: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem

0-10

Page 11: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem

0-11

Page 12: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem

0-12

Page 13: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem

0-13

Page 14: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.11 Order of Execution of Instructions

0-14

Page 15: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Software Development Cycle

1. Analysis

2. Design

3. Development

4. Implementation

5. Maintenance and review

0-15

Page 16: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Analyzing the Problem

Understand requirements:

1.The given data

2.The required results

3.The processing that is required in the problem

4.A list of solution alternatives

0-16

Page 17: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.1 Problem Analysis Chart

0-17

Page 18: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.2 Problem Analysis Chart for the Payroll Problem

0-18

Page 19: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.3 The Interactivity Chart

0-19

Page 20: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.5 The Interactivity Chart for the Payroll Problem

0-20

Page 21: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.6 The IPO(input-processing-output) Chart

0-21

Page 22: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.7 The IPO Chart for the Payroll Problem

0-22

Page 23: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.13 Use Case Diagram

0-23

Page 24: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.14 Use Case Diagram

0-24

Page 25: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.15 Class Diagram of Books Class

0-25

Page 26: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.16 Sequence Diagram

0-26

Page 27: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.17 Sequence Diagram for Starting and Turning Off a Car Engine

0-27

Page 28: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.18 Statechart Diagram

0-28

Page 29: Copyright © 2012 Pearson Education, Inc. Chapter 3 Planning Your Solution Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and

Copyright © 2012 Pearson Education, Inc.

Figure 3.19 Activity Diagram

0-29