Upload
roland-haynes
View
214
Download
1
Tags:
Embed Size (px)
Citation preview
Copyright © 2012 Pearson Education, Inc.
Chapter 3Planning Your Solution
Problem Solving and Programming Concepts
9th Edition
By Maureen Sprankle and Jim Hubbard
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
Copyright © 2012 Pearson Education, Inc.
Good Quote
Computers are only as good as their hardware, their software, and the people
using them!
0-3
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
Copyright © 2012 Pearson Education, Inc. 0-5
Copyright © 2012 Pearson Education, Inc.
Figure 3.9 Flowchart Symbols
0-6
Copyright © 2012 Pearson Education, Inc.
Figure 3.9 Flowchart Symbols
0-7
Copyright © 2012 Pearson Education, Inc.
Figure 3.9 Flowchart Symbols
0-8
Copyright © 2012 Pearson Education, Inc.
Figure 3.9 Flowchart Symbols
0-9
Copyright © 2012 Pearson Education, Inc.
Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem
0-10
Copyright © 2012 Pearson Education, Inc.
Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem
0-11
Copyright © 2012 Pearson Education, Inc.
Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem
0-12
Copyright © 2012 Pearson Education, Inc.
Figure 3.10 The Algorithms and Flowcharts for the Payroll Problem
0-13
Copyright © 2012 Pearson Education, Inc.
Figure 3.11 Order of Execution of Instructions
0-14
Copyright © 2012 Pearson Education, Inc.
Software Development Cycle
1. Analysis
2. Design
3. Development
4. Implementation
5. Maintenance and review
0-15
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
Copyright © 2012 Pearson Education, Inc.
Figure 3.1 Problem Analysis Chart
0-17
Copyright © 2012 Pearson Education, Inc.
Figure 3.2 Problem Analysis Chart for the Payroll Problem
0-18
Copyright © 2012 Pearson Education, Inc.
Figure 3.3 The Interactivity Chart
0-19
Copyright © 2012 Pearson Education, Inc.
Figure 3.5 The Interactivity Chart for the Payroll Problem
0-20
Copyright © 2012 Pearson Education, Inc.
Figure 3.6 The IPO(input-processing-output) Chart
0-21
Copyright © 2012 Pearson Education, Inc.
Figure 3.7 The IPO Chart for the Payroll Problem
0-22
Copyright © 2012 Pearson Education, Inc.
Figure 3.13 Use Case Diagram
0-23
Copyright © 2012 Pearson Education, Inc.
Figure 3.14 Use Case Diagram
0-24
Copyright © 2012 Pearson Education, Inc.
Figure 3.15 Class Diagram of Books Class
0-25
Copyright © 2012 Pearson Education, Inc.
Figure 3.16 Sequence Diagram
0-26
Copyright © 2012 Pearson Education, Inc.
Figure 3.17 Sequence Diagram for Starting and Turning Off a Car Engine
0-27
Copyright © 2012 Pearson Education, Inc.
Figure 3.18 Statechart Diagram
0-28
Copyright © 2012 Pearson Education, Inc.
Figure 3.19 Activity Diagram
0-29